diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-06-30 18:03:56 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-06-30 18:03:56 +0900 |
commit | 78a425ec47dff47a09e3547d041fdd3216aa1403 (patch) | |
tree | f9eebb27a6ea6d430b51466a6e763f4c5b9b6521 /lib | |
parent | b882b47c8201c5ef29d97747655c9751e47f2066 (diff) | |
download | libquotient-78a425ec47dff47a09e3547d041fdd3216aa1403.tar.gz libquotient-78a425ec47dff47a09e3547d041fdd3216aa1403.zip |
Try [[gnu::const]]
Diffstat (limited to 'lib')
-rw-r--r-- | lib/util.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/util.cpp b/lib/util.cpp index 02de39a0..1fadb9a8 100644 --- a/lib/util.cpp +++ b/lib/util.cpp @@ -26,7 +26,7 @@ static const auto RegExpOptions = | QRegularExpression::UseUnicodePropertiesOption; /** Converts all that looks like a URL into HTML links */ -static void linkifyUrls(QString& htmlEscapedText) +[[gnu::const]] static void linkifyUrls(QString& htmlEscapedText) { // regexp is originally taken from Konsole (https://github.com/KDE/konsole) // full url: |