aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-06-30 18:03:56 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-06-30 18:03:56 +0900
commit78a425ec47dff47a09e3547d041fdd3216aa1403 (patch)
treef9eebb27a6ea6d430b51466a6e763f4c5b9b6521 /lib
parentb882b47c8201c5ef29d97747655c9751e47f2066 (diff)
downloadlibquotient-78a425ec47dff47a09e3547d041fdd3216aa1403.tar.gz
libquotient-78a425ec47dff47a09e3547d041fdd3216aa1403.zip
Try [[gnu::const]]
Diffstat (limited to 'lib')
-rw-r--r--lib/util.cpp2
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: