diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2019-07-06 11:41:08 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2019-07-06 11:41:08 +0900 |
commit | 281e3235d3d4618afd9f01049b8a2acbe1c8475c (patch) | |
tree | 6601423a249883cf188b10ef696933384ba23c2d /lib | |
parent | d15ba3d77598c60b1eb713cb2a5348390071db44 (diff) | |
download | libquotient-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.cpp | 2 |
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 |