From 886b17756ffca68ed5d4847d4f34194adc2a3824 Mon Sep 17 00:00:00 2001 From: subhransu mohanty Date: Mon, 3 Sep 2018 18:27:12 +0900 Subject: [PATCH] lottie: avoid extra copy by using std::move Change-Id: Iaa61ee36a87e26b2c26676cae4b7cf2e94b595a0 --- src/vector/vdrawhelper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.34.1