diff options
author | Jochen Nitschke <j.nitschke+logerrit@ok.de> | 2017-01-23 09:01:42 +0100 |
---|---|---|
committer | Jochen Nitschke <j.nitschke+logerrit@ok.de> | 2017-01-23 13:50:45 +0000 |
commit | abc8057ab1a1189ff7f88d42b13b363ceb228d16 (patch) | |
tree | 20145fa90c9a1bf91dea3489d384fe6d28ac2ec0 /include/svx/svddrgmt.hxx | |
parent | 5f1bc19a9a0dbdf88e11ef81cc8c2f302748632c (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 'include/svx/svddrgmt.hxx')
-rw-r--r-- | include/svx/svddrgmt.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/svx/svddrgmt.hxx b/include/svx/svddrgmt.hxx index df51ea85bd7d..e3286291b534 100644 --- a/include/svx/svddrgmt.hxx +++ b/include/svx/svddrgmt.hxx @@ -128,8 +128,8 @@ protected: virtual void createSdrDragEntries(); virtual void createSdrDragEntryForSdrObject(const SdrObject& rOriginal, sdr::contact::ObjectContact& rObjectContact); - // access for derivated classes to maOverlayObjectList - void addToOverlayObjectList(sdr::overlay::OverlayObject& rNew) { maOverlayObjectList.append(rNew); } + // access for derivated classes to maOverlayObjectList (passes ownership) + void addToOverlayObjectList(sdr::overlay::OverlayObject* pNew) { maOverlayObjectList.append(pNew); } // access for derivated classes to mrSdrDragView SdrDragView& getSdrDragView() { return mrSdrDragView; } |