diff options
author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2020-10-15 17:27:33 +0200 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2020-10-16 13:53:03 +0200 |
commit | 1d49dad22c59dab7b937ea2a685fb6c3d5a08b0f (patch) | |
tree | 6c30bd62b8e961367474dd540c7cbaac0aaf70e9 /src | |
parent | e2b3d42f946a7702a92412f8c603f13ad53a4566 (diff) |
Fix warning, make sure temporary is moved into return value
Seen on clang 12; might be a compiler bug, but doesn't hurt
either.
Change-Id: I4aba8406c99951106e57fe9e61c688e649963cd6
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/corelib/text/qstringtokenizer.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/text/qstringtokenizer.h b/src/corelib/text/qstringtokenizer.h index b4272ec069..d6944cbcae 100644 --- a/src/corelib/text/qstringtokenizer.h +++ b/src/corelib/text/qstringtokenizer.h @@ -337,7 +337,7 @@ public: { for (auto e : *this) c.emplace_back(e); - return c; + return std::move(c); } #ifdef Q_QDOC @@ -350,7 +350,7 @@ public: { for (auto e : *this) c.emplace_back(e); - return c; + return std::move(c); } }; |