mirror of
https://github.com/thorvg/thorvg.git
synced 2025-07-23 22:58:44 +00:00
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:
parent
105a59b5b3
commit
c40823d70e
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue