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:
parent
e2b3d42f94
commit
1d49dad22c
@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user