aboutsummaryrefslogtreecommitdiff
path: root/lib/uri.cpp
diff options
context:
space:
mode:
authorAlexey Rusakov <Kitsune-Ral@users.sf.net>2022-01-18 08:54:52 +0100
committerAlexey Rusakov <Kitsune-Ral@users.sf.net>2022-01-18 08:55:23 +0100
commitbd280a087ecab30f94f7937513ee298c233fcba1 (patch)
tree1209c5adc664e81e664b6be95f45dad86facdcf0 /lib/uri.cpp
parentbc4a0f5d408d901f3c8f4dfeec0574ded04845bf (diff)
downloadlibquotient-bd280a087ecab30f94f7937513ee298c233fcba1.tar.gz
libquotient-bd280a087ecab30f94f7937513ee298c233fcba1.zip
Revise inline keyword usage
- Templates and constexpr imply inline - A function called from a single site better be inlined.
Diffstat (limited to 'lib/uri.cpp')
-rw-r--r--lib/uri.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/uri.cpp b/lib/uri.cpp
index c8843dda..3ce81a21 100644
--- a/lib/uri.cpp
+++ b/lib/uri.cpp
@@ -75,7 +75,7 @@ static auto decodeFragmentPart(QStringView part)
return QUrl::fromPercentEncoding(part.toLatin1()).toUtf8();
}
-static auto matrixToUrlRegexInit()
+static inline auto matrixToUrlRegexInit()
{
// See https://matrix.org/docs/spec/appendices#matrix-to-navigation
const QRegularExpression MatrixToUrlRE {