aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2019-07-06 11:41:08 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2019-07-06 11:41:08 +0900
commit281e3235d3d4618afd9f01049b8a2acbe1c8475c (patch)
tree6601423a249883cf188b10ef696933384ba23c2d /lib
parentd15ba3d77598c60b1eb713cb2a5348390071db44 (diff)
downloadlibquotient-281e3235d3d4618afd9f01049b8a2acbe1c8475c.tar.gz
libquotient-281e3235d3d4618afd9f01049b8a2acbe1c8475c.zip
Connection::serverPart: replace auto with QString because of QStringBuilder
See https://github.com/KDE/clazy/blob/master/docs/checks/README-auto-unexpected-qstringbuilder.md Closes #613.
Diffstat (limited to 'lib')
-rw-r--r--lib/connection.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/connection.cpp b/lib/connection.cpp
index cd02f6d7..5d377173 100644
--- a/lib/connection.cpp
+++ b/lib/connection.cpp
@@ -166,7 +166,7 @@ static const auto ServerPartRegEx = QStringLiteral(
QString serverPart(const QString& mxId)
{
- static auto re = "^[@!#$+].+?:(" // Localpart and colon
+ static QString re = "^[@!#$+].+?:(" // Localpart and colon
% ServerPartRegEx % ")$";
static QRegularExpression parser(re,
QRegularExpression::UseUnicodePropertiesOption); // Because Asian digits