summaryrefslogtreecommitdiff
path: root/drawinglayer
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-12-02 10:09:15 +0000
committerCaolán McNamara <caolanm@redhat.com>2016-12-02 10:58:04 +0000
commit2d2329f441aa67e8be9f77dcfa3d048e50651357 (patch)
tree0b4d6c1f21ea1ffe15bffaee1f71eeb847043de0 /drawinglayer
parentd596053eeebe04bce7d96b3fda698e9df96c1c3d (diff)
coverity#1371200 Missing move assignment operator
adjust things to not need one Change-Id: I1079f50d8813f86c4828be602687b4cbffe61415
Diffstat (limited to 'drawinglayer')
-rw-r--r--drawinglayer/source/processor2d/vclprocessor2d.cxx25
1 files changed, 13 insertions, 12 deletions
diff --git a/drawinglayer/source/processor2d/vclprocessor2d.cxx b/drawinglayer/source/processor2d/vclprocessor2d.cxx
index 8544f4c44d03..900cada4db7a 100644
--- a/drawinglayer/source/processor2d/vclprocessor2d.cxx
+++ b/drawinglayer/source/processor2d/vclprocessor2d.cxx
@@ -87,6 +87,18 @@ namespace
return nSteps;
}
+
+ // get metafile (copy it)
+ GDIMetaFile GetMetaFile(const drawinglayer::primitive2d::MetafilePrimitive2D& rMetaCandidate, const basegfx::BColorModifierStack& rColorModifierStack)
+ {
+ if (rColorModifierStack.count())
+ {
+ const basegfx::BColor aRGBBaseColor(0, 0, 0);
+ const basegfx::BColor aRGBColor(rColorModifierStack.getModifiedColor(aRGBBaseColor));
+ return rMetaCandidate.getMetaFile().GetMonochromeMtf(Color(aRGBColor));
+ }
+ return rMetaCandidate.getMetaFile();
+ }
}
namespace drawinglayer
@@ -736,18 +748,7 @@ namespace drawinglayer
(sal_Int32)floor(aOutlineRange.getMaxX()), (sal_Int32)floor(aOutlineRange.getMaxY()));
// get metafile (copy it)
- GDIMetaFile aMetaFile;
-
- if(maBColorModifierStack.count())
- {
- const basegfx::BColor aRGBBaseColor(0, 0, 0);
- const basegfx::BColor aRGBColor(maBColorModifierStack.getModifiedColor(aRGBBaseColor));
- aMetaFile = rMetaCandidate.getMetaFile().GetMonochromeMtf(Color(aRGBColor));
- }
- else
- {
- aMetaFile = rMetaCandidate.getMetaFile();
- }
+ GDIMetaFile aMetaFile(GetMetaFile(rMetaCandidate, maBColorModifierStack));
// rotation
if(!basegfx::fTools::equalZero(fRotate))