summaryrefslogtreecommitdiffstats
path: root/drawinglayer
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2021-08-21 19:38:58 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-08-22 16:23:26 +0200
commit0944ef734571ae34cbecc53812e576a39b3722f0 (patch)
treed0668770deb4ac230aeaa96fab187c1127d53455 /drawinglayer
parentdon't store vcl::Font with unique_ptr (diff)
downloadcore-0944ef734571ae34cbecc53812e576a39b3722f0.tar.gz
core-0944ef734571ae34cbecc53812e576a39b3722f0.zip
no need to use unique_ptr for ViewInformation3D
it is already a COW type Change-Id: Ie098bd293115650128ebb18d5c16747b519717c4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120825 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'drawinglayer')
-rw-r--r--drawinglayer/source/primitive3d/sdrextrudeprimitive3d.cxx2
-rw-r--r--drawinglayer/source/primitive3d/sdrlatheprimitive3d.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/drawinglayer/source/primitive3d/sdrextrudeprimitive3d.cxx b/drawinglayer/source/primitive3d/sdrextrudeprimitive3d.cxx
index b7d1c8abdd9b..04796233693d 100644
--- a/drawinglayer/source/primitive3d/sdrextrudeprimitive3d.cxx
+++ b/drawinglayer/source/primitive3d/sdrextrudeprimitive3d.cxx
@@ -488,7 +488,7 @@ namespace drawinglayer::primitive3d
// new one and clear current decompositiopn
SdrExtrudePrimitive3D* pThat = const_cast< SdrExtrudePrimitive3D* >(this);
pThat->setBuffered3DDecomposition(Primitive3DContainer());
- pThat->mpLastRLGViewInformation.reset( new geometry::ViewInformation3D(rViewInformation) );
+ pThat->mpLastRLGViewInformation = rViewInformation;
}
}
diff --git a/drawinglayer/source/primitive3d/sdrlatheprimitive3d.cxx b/drawinglayer/source/primitive3d/sdrlatheprimitive3d.cxx
index 1d5b918a27bf..291c82af1d2e 100644
--- a/drawinglayer/source/primitive3d/sdrlatheprimitive3d.cxx
+++ b/drawinglayer/source/primitive3d/sdrlatheprimitive3d.cxx
@@ -346,7 +346,7 @@ namespace drawinglayer::primitive3d
// new one and clear current decompositiopn
SdrLathePrimitive3D* pThat = const_cast< SdrLathePrimitive3D* >(this);
pThat->setBuffered3DDecomposition(Primitive3DContainer());
- pThat->mpLastRLGViewInformation.reset( new geometry::ViewInformation3D(rViewInformation) );
+ pThat->mpLastRLGViewInformation = rViewInformation;
}
}