diff options
Diffstat (limited to 'experimental')
-rw-r--r-- | experimental/skottie/Skottie.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/experimental/skottie/Skottie.cpp b/experimental/skottie/Skottie.cpp index 9c5849ffa6..7486502f2e 100644 --- a/experimental/skottie/Skottie.cpp +++ b/experimental/skottie/Skottie.cpp @@ -140,7 +140,7 @@ sk_sp<sksg::RenderNode> AttachOpacity(const Json::Value& jtransform, AttachConte opacityNode->setOpacity(o * 0.01f); }); - return opacityNode; + return std::move(opacityNode); } sk_sp<sksg::RenderNode> AttachComposition(const Json::Value&, AttachContext* ctx); @@ -182,7 +182,7 @@ sk_sp<sksg::GeometryNode> AttachRRectGeometry(const Json::Value& jrect, AttachCo return nullptr; } - return rect_node; + return std::move(rect_node); } sk_sp<sksg::GeometryNode> AttachEllipseGeometry(const Json::Value& jellipse, AttachContext* ctx) { @@ -206,7 +206,7 @@ sk_sp<sksg::GeometryNode> AttachEllipseGeometry(const Json::Value& jellipse, Att return nullptr; } - return rect_node; + return std::move(rect_node); } sk_sp<sksg::GeometryNode> AttachPolystarGeometry(const Json::Value& jstar, AttachContext* ctx) { @@ -255,7 +255,7 @@ sk_sp<sksg::GeometryNode> AttachPolystarGeometry(const Json::Value& jstar, Attac adapter->setRotation(r); }); - return path_node; + return std::move(path_node); } sk_sp<sksg::Color> AttachColor(const Json::Value& obj, AttachContext* ctx) { @@ -1112,7 +1112,7 @@ sk_sp<sksg::RenderNode> AttachLayer(const Json::Value& jlayer, layerCtx->fCurrentMatte.reset(); } - return controller_node; + return std::move(controller_node); } sk_sp<sksg::RenderNode> AttachComposition(const Json::Value& comp, AttachContext* ctx) { @@ -1142,7 +1142,7 @@ sk_sp<sksg::RenderNode> AttachComposition(const Json::Value& comp, AttachContext comp_group->addChild(std::move(layers[i])); } - return comp_group; + return std::move(comp_group); } } // namespace |