summaryrefslogtreecommitdiff
path: root/svx/source/svdraw/svddrgmt.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2024-02-06 15:51:19 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-02-07 16:43:23 +0100
commit33b7d62281f1f9aaeaa2f68615e90190fe7b5aaf (patch)
tree1c0156528fda73b0941982c84a8885f0867e993f /svx/source/svdraw/svddrgmt.cxx
parentcf11a0dfca5470baea8429c41021527187a5c32d (diff)
these casts are no longer necessary
Change-Id: Ife51f47d95e286e0fec165882377c31b1a664241 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163058 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/svdraw/svddrgmt.cxx')
-rw-r--r--svx/source/svdraw/svddrgmt.cxx11
1 files changed, 4 insertions, 7 deletions
diff --git a/svx/source/svdraw/svddrgmt.cxx b/svx/source/svdraw/svddrgmt.cxx
index 101e4369d40e..4bd3c138a7d0 100644
--- a/svx/source/svdraw/svddrgmt.cxx
+++ b/svx/source/svdraw/svddrgmt.cxx
@@ -197,10 +197,9 @@ SdrDragEntryPrimitive2DSequence::~SdrDragEntryPrimitive2DSequence()
drawinglayer::primitive2d::Primitive2DContainer SdrDragEntryPrimitive2DSequence::createPrimitive2DSequenceInCurrentState(SdrDragMethod& rDragMethod)
{
return drawinglayer::primitive2d::Primitive2DContainer {
- drawinglayer::primitive2d::Primitive2DReference(
new drawinglayer::primitive2d::TransformPrimitive2D(
rDragMethod.getCurrentTransformation(),
- drawinglayer::primitive2d::Primitive2DContainer(maPrimitive2DSequence)))
+ drawinglayer::primitive2d::Primitive2DContainer(maPrimitive2DSequence))
};
}
@@ -253,17 +252,15 @@ drawinglayer::primitive2d::Primitive2DContainer SdrDragEntryPointGlueDrag::creat
}
aRetval = drawinglayer::primitive2d::Primitive2DContainer {
- drawinglayer::primitive2d::Primitive2DReference(
new drawinglayer::primitive2d::MarkerArrayPrimitive2D(std::move(aTransformedPositions),
- drawinglayer::primitive2d::createDefaultCross_3x3(aColor)))
+ drawinglayer::primitive2d::createDefaultCross_3x3(aColor))
};
}
else
{
aRetval = drawinglayer::primitive2d::Primitive2DContainer {
- drawinglayer::primitive2d::Primitive2DReference(
new drawinglayer::primitive2d::MarkerArrayPrimitive2D(std::move(aTransformedPositions),
- SdrHdl::createGluePointBitmap()))
+ SdrHdl::createGluePointBitmap())
};
}
}
@@ -794,7 +791,7 @@ void SdrDragMethod::CreateOverlayGeometry(
if(!aResultTransparent.empty())
{
aResultTransparent = drawinglayer::primitive2d::Primitive2DContainer {
- drawinglayer::primitive2d::Primitive2DReference(new drawinglayer::primitive2d::UnifiedTransparencePrimitive2D(std::move(aResultTransparent), 0.5))
+ new drawinglayer::primitive2d::UnifiedTransparencePrimitive2D(std::move(aResultTransparent), 0.5)
};
std::unique_ptr<sdr::overlay::OverlayObject> pNewOverlayObject(