From: subhransu mohanty Date: Mon, 3 Sep 2018 09:27:12 +0000 (+0900) Subject: lottie: avoid extra copy by using std::move X-Git-Tag: submit/tizen/20180917.042405~40 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=886b17756ffca68ed5d4847d4f34194adc2a3824;p=platform%2Fcore%2Fuifw%2Flottie-player.git lottie: avoid extra copy by using std::move Change-Id: Iaa61ee36a87e26b2c26676cae4b7cf2e94b595a0 --- diff --git a/src/vector/vdrawhelper.cpp b/src/vector/vdrawhelper.cpp index 315b59b..ccb1168 100644 --- a/src/vector/vdrawhelper.cpp +++ b/src/vector/vdrawhelper.cpp @@ -7,7 +7,7 @@ class VGradientCache { public: struct CacheInfo : public VSpanData::Pinnable { - inline CacheInfo(VGradientStops s) : stops(s) {} + inline CacheInfo(VGradientStops s) : stops(std::move(s)) {} uint32_t buffer32[VGradient::colorTableSize]; VGradientStops stops; bool alpha;