diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-09-23 15:35:34 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-09-24 11:33:32 +0200 |
commit | c8d2fa176a15a7ae76d6a4b76aea5f108313c2ec (patch) | |
tree | 96cee630060986d6d2ab68b1ce2ca09a6a4fe922 /drawinglayer/inc/primitive2d/graphicprimitivehelper2d.hxx | |
parent | e1600348e49e1538459a0374fd97cd3173d4a4b9 (diff) |
reduce copying in drawinglayer
by passing PrimitiveContainer&& around.
There are lots of place where we were preparing a local variable of type
PrimitiveContainer, and then copying it someplace else, then throwing it
away.
Change-Id: Iacfd983640c9e55da25800ccc01734dfc8b4d64a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122527
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'drawinglayer/inc/primitive2d/graphicprimitivehelper2d.hxx')
-rw-r--r-- | drawinglayer/inc/primitive2d/graphicprimitivehelper2d.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drawinglayer/inc/primitive2d/graphicprimitivehelper2d.hxx b/drawinglayer/inc/primitive2d/graphicprimitivehelper2d.hxx index 001ff3159305..cecb1d8f1564 100644 --- a/drawinglayer/inc/primitive2d/graphicprimitivehelper2d.hxx +++ b/drawinglayer/inc/primitive2d/graphicprimitivehelper2d.hxx @@ -44,7 +44,7 @@ namespace drawinglayer::primitive2d applied. */ Primitive2DContainer create2DColorModifierEmbeddingsAsNeeded( - const Primitive2DContainer& rChildren, + Primitive2DContainer&& rChildren, GraphicDrawMode aGraphicDrawMode, double fLuminance = 0.0, // [-1.0 .. 1.0] double fContrast = 0.0, // [-1.0 .. 1.0] |