summaryrefslogtreecommitdiff
path: root/drawinglayer/source/primitive2d
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-09-11 08:54:30 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-09-11 09:44:12 +0200
commit3428bd5fa3626844355f20997ba690fd04297982 (patch)
tree683256f95828e54edecdd87fbde0ce32a634a834 /drawinglayer/source/primitive2d
parent9c5c905680f7cb58eb3d0fbf25725a50c17896da (diff)
clang-tidy modernize-use-emplace in d*
Change-Id: I79ac90faf24b4c741545e411dbaea7826c2df531 Reviewed-on: https://gerrit.libreoffice.org/42150 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'drawinglayer/source/primitive2d')
-rw-r--r--drawinglayer/source/primitive2d/animatedprimitive2d.cxx2
-rw-r--r--drawinglayer/source/primitive2d/svggradientprimitive2d.cxx5
2 files changed, 3 insertions, 4 deletions
diff --git a/drawinglayer/source/primitive2d/animatedprimitive2d.cxx b/drawinglayer/source/primitive2d/animatedprimitive2d.cxx
index 6110013366e3..00af2589627d 100644
--- a/drawinglayer/source/primitive2d/animatedprimitive2d.cxx
+++ b/drawinglayer/source/primitive2d/animatedprimitive2d.cxx
@@ -137,7 +137,7 @@ namespace drawinglayer
for(sal_uInt32 a(0); a < nCount; a++)
{
- maMatrixStack.push_back(basegfx::tools::B2DHomMatrixBufferedDecompose(rmMatrixStack[a]));
+ maMatrixStack.emplace_back(rmMatrixStack[a]);
}
}
diff --git a/drawinglayer/source/primitive2d/svggradientprimitive2d.cxx b/drawinglayer/source/primitive2d/svggradientprimitive2d.cxx
index e9f67216869c..60fc556a4f52 100644
--- a/drawinglayer/source/primitive2d/svggradientprimitive2d.cxx
+++ b/drawinglayer/source/primitive2d/svggradientprimitive2d.cxx
@@ -695,11 +695,10 @@ namespace drawinglayer
{
const SvgGradientEntry& rCandidate = getGradientEntries()[nCount - 1 - a];
- maMirroredGradientEntries.push_back(
- SvgGradientEntry(
+ maMirroredGradientEntries.emplace_back(
1.0 - rCandidate.getOffset(),
rCandidate.getColor(),
- rCandidate.getOpacity()));
+ rCandidate.getOpacity());
}
}
}