diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2020-12-24 18:20:04 +0100 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2020-12-24 18:20:04 +0100 |
commit | 0a2acd750a4155969092be674ed3dd9a71b2354f (patch) | |
tree | 37a45405633d2a229f60a478f05979218f8c7d38 /lib/uri.cpp | |
parent | 1a832ae9b6a0d679b551fd644136e4bc17e7db29 (diff) | |
download | libquotient-0a2acd750a4155969092be674ed3dd9a71b2354f.tar.gz libquotient-0a2acd750a4155969092be674ed3dd9a71b2354f.zip |
Fix clang-tidy/clazy warnings
Diffstat (limited to 'lib/uri.cpp')
-rw-r--r-- | lib/uri.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/uri.cpp b/lib/uri.cpp index 0e2bcb87..e0912eb6 100644 --- a/lib/uri.cpp +++ b/lib/uri.cpp @@ -32,7 +32,7 @@ Uri::Uri(QByteArray primaryId, QByteArray secondaryId, QString query) primaryType_ = Type(p.sigil); auto safePrimaryId = primaryId.mid(1); safePrimaryId.replace('/', "%2F"); - pathToBe = p.uriString + std::move(safePrimaryId); + pathToBe = p.uriString + safePrimaryId; break; } if (!secondaryId.isEmpty()) { @@ -42,12 +42,12 @@ Uri::Uri(QByteArray primaryId, QByteArray secondaryId, QString query) } auto safeSecondaryId = secondaryId.mid(1); safeSecondaryId.replace('/', "%2F"); - pathToBe += "/event/" + std::move(safeSecondaryId); + pathToBe += "/event/" + safeSecondaryId; } setPath(pathToBe, QUrl::TolerantMode); } if (!query.isEmpty()) - setQuery(std::move(query)); + setQuery(query); } static inline auto encodedPath(const QUrl& url) @@ -156,7 +156,7 @@ QUrl Uri::toUrl(UriForm form) const return {}; if (form == CanonicalUri || type() == NonMatrix) - return *this; + return *this; // NOLINT(cppcoreguidelines-slicing): It's intentional QUrl url; url.setScheme("https"); |