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>
This commit is contained in:
Volker Hilsheimer 2020-10-15 17:27:33 +02:00
parent e2b3d42f94
commit 1d49dad22c

View File

@ -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);
}
};