lottie: avoid extra copy by using std::move 48/188248/1
authorsubhransu mohanty <sub.mohanty@samsung.com>
Mon, 3 Sep 2018 09:27:12 +0000 (18:27 +0900)
committersubhransu mohanty <sub.mohanty@samsung.com>
Mon, 3 Sep 2018 09:27:12 +0000 (18:27 +0900)
Change-Id: Iaa61ee36a87e26b2c26676cae4b7cf2e94b595a0

src/vector/vdrawhelper.cpp

index 315b59b42f630075f84419fbdc62dfb8dfc318a7..ccb116830936dcecf6844a93697e957890d536f0 100644 (file)
@@ -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;