diff --git a/src/corelib/text/qstringtokenizer.h b/src/corelib/text/qstringtokenizer.h index f1da701af27..76d8015159f 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 std::move(c); + return std::forward(c); } template, if_compatible_container = true, if_haystack_not_pinned = true> @@ -345,7 +345,7 @@ public: { for (auto e : *this) c.emplace_back(e); - return std::move(c); + return std::forward(c); } #endif };