summaryrefslogtreecommitdiff
path: root/svgio
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2023-12-18 21:11:56 +0000
committerCaolán McNamara <caolan.mcnamara@collabora.com>2023-12-19 09:42:03 +0100
commite8248b5e4b19df8ba469d1ca3a762960c1a053b5 (patch)
tree74e667d0e9a5379aaf7b0f26485f48aee31a60fc /svgio
parent30fa383f27d9eed05d699681afb1ce76fb4248f9 (diff)
cid#1545222 COPY_INSTEAD_OF_MOVE
and cid#1545241 COPY_INSTEAD_OF_MOVE cid#1545303 COPY_INSTEAD_OF_MOVE cid#1545315 COPY_INSTEAD_OF_MOVE cid#1545319 COPY_INSTEAD_OF_MOVE cid#1545322 COPY_INSTEAD_OF_MOVE Change-Id: I284ba6e395f72abd7939667a8367ac99ab64194d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160955 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'svgio')
-rw-r--r--svgio/source/svgreader/svgmasknode.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/svgio/source/svgreader/svgmasknode.cxx b/svgio/source/svgreader/svgmasknode.cxx
index b0ba0cdf1deb..2f827aaee12d 100644
--- a/svgio/source/svgreader/svgmasknode.cxx
+++ b/svgio/source/svgreader/svgmasknode.cxx
@@ -268,12 +268,12 @@ namespace svgio::svgreader
// embed content to a ModifiedColorPrimitive2D since the definitions
// how content is used as alpha is special for Svg
{
- drawinglayer::primitive2d::Primitive2DReference xInverseMask(
- new drawinglayer::primitive2d::ModifiedColorPrimitive2D(
- std::move(aMaskTarget),
- std::make_shared<basegfx::BColorModifier_luminance_to_alpha>()));
-
- aMaskTarget = drawinglayer::primitive2d::Primitive2DContainer { xInverseMask };
+ aMaskTarget = drawinglayer::primitive2d::Primitive2DContainer {
+ drawinglayer::primitive2d::Primitive2DReference(
+ new drawinglayer::primitive2d::ModifiedColorPrimitive2D(
+ std::move(aMaskTarget),
+ std::make_shared<basegfx::BColorModifier_luminance_to_alpha>()))
+ };
}
// prepare new content