mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 13:43:43 +00:00
svg_loader: fix compile warnings.
-- warning: moving a local object in a return statement prevents copy elision [-Wpessimizing-move] Change-Id: I7dec55fe117d27217b7a29d5983b23cedadacb71
This commit is contained in:
parent
ef11d500ba
commit
4959db9c04
1 changed files with 3 additions and 3 deletions
|
@ -111,7 +111,7 @@ unique_ptr<LinearGradient> _applyLinearGradientProperty(SvgStyleGradient* g, Sha
|
|||
fillGrad->colorStops(stops, stopCount);
|
||||
free(stops);
|
||||
}
|
||||
return move(fillGrad);
|
||||
return fillGrad;
|
||||
}
|
||||
|
||||
|
||||
|
@ -197,7 +197,7 @@ unique_ptr<RadialGradient> _applyRadialGradientProperty(SvgStyleGradient* g, Sha
|
|||
fillGrad->colorStops(stops, stopCount);
|
||||
free(stops);
|
||||
}
|
||||
return move(fillGrad);
|
||||
return fillGrad;
|
||||
}
|
||||
|
||||
|
||||
|
@ -342,7 +342,7 @@ unique_ptr<Scene> _sceneBuildHelper(SvgNode* node, float vx, float vy, float vw,
|
|||
}
|
||||
}
|
||||
}
|
||||
return move(scene);
|
||||
return scene;
|
||||
}
|
||||
return nullptr;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue