aboutsummaryrefslogtreecommitdiff
path: root/lib/uri.cpp
diff options
context:
space:
mode:
authorAlexey Rusakov <Kitsune-Ral@users.sf.net>2022-04-23 19:46:58 +0200
committerAlexey Rusakov <Kitsune-Ral@users.sf.net>2022-04-23 19:46:58 +0200
commit534b6f3fb3a4bd14d78942cab7eb430dd98e471c (patch)
tree06192a8cef7df59891319704d8bb402efb5db261 /lib/uri.cpp
parent87e8d6d6ef325f176a7d3b5da441569f9b24c847 (diff)
downloadlibquotient-534b6f3fb3a4bd14d78942cab7eb430dd98e471c.tar.gz
libquotient-534b6f3fb3a4bd14d78942cab7eb430dd98e471c.zip
SLICE()
Add a macro to make slicing clear in the code and quiet for static analysis.
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 6b7d1d20..91751df0 100644
--- a/lib/uri.cpp
+++ b/lib/uri.cpp
@@ -171,7 +171,7 @@ QUrl Uri::toUrl(UriForm form) const
return {};
if (form == CanonicalUri || type() == NonMatrix)
- return *this; // NOLINT(cppcoreguidelines-slicing): It's intentional
+ return SLICE(*this, QUrl);
QUrl url;
url.setScheme("https");