loaders svg: remove unnecessary move call, move is guaranteed at the return value.

warning: moving a temporary object prevents copy elision [-Wpessimizing-move]
This commit is contained in:
Hermet Park 2021-03-16 13:29:16 +09:00
parent 105a59b5b3
commit c40823d70e

View file

@ -389,7 +389,7 @@ unique_ptr<Scene> _sceneBuildHelper(const SvgNode* node, float vx, float vy, flo
unique_ptr<Scene> _buildRoot(const SvgNode* node, float vx, float vy, float vw, float vh)
{
unique_ptr<Scene> root;
auto docNode = move(_sceneBuildHelper(node, vx, vy, vw, vh));
auto docNode = _sceneBuildHelper(node, vx, vy, vw, vh);
float x, y, w, h;
if (docNode->bounds(&x, &y, &w, &h) != Result::Success) return nullptr;