summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorJochen Nitschke <j.nitschke+logerrit@ok.de>2017-01-23 09:01:42 +0100
committerJochen Nitschke <j.nitschke+logerrit@ok.de>2017-01-23 13:50:45 +0000
commitabc8057ab1a1189ff7f88d42b13b363ceb228d16 (patch)
tree20145fa90c9a1bf91dea3489d384fe6d28ac2ec0 /chart2
parent5f1bc19a9a0dbdf88e11ef81cc8c2f302748632c (diff)
pass ownership by pointer
to show the intend of the code. assert on invalid objects. remove useless OSL_ENSURE. make sure list of owning pointers can't be copied. Change-Id: I3cccf8ea87585ec9fe62921203a4d12e617ce15c Reviewed-on: https://gerrit.libreoffice.org/33393 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Jochen Nitschke <j.nitschke+logerrit@ok.de>
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/controller/main/DragMethod_RotateDiagram.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/chart2/source/controller/main/DragMethod_RotateDiagram.cxx b/chart2/source/controller/main/DragMethod_RotateDiagram.cxx
index 543f32e2de09..55959776bd3a 100644
--- a/chart2/source/controller/main/DragMethod_RotateDiagram.cxx
+++ b/chart2/source/controller/main/DragMethod_RotateDiagram.cxx
@@ -215,7 +215,7 @@ void DragMethod_RotateDiagram::CreateOverlayGeometry(sdr::overlay::OverlayManage
sdr::overlay::OverlayPolyPolygonStripedAndFilled* pNew = new sdr::overlay::OverlayPolyPolygonStripedAndFilled(
aPolyPolygon);
rOverlayManager.add(*pNew);
- addToOverlayObjectList(*pNew);
+ addToOverlayObjectList(pNew);
}
}
} //namespace chart