diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-09-20 09:48:50 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-09-21 10:52:46 +0200 |
commit | ffe84f49270e0a8818365ca7d1fd5242abff5562 (patch) | |
tree | 9fc133fc58737afcfbd49242528811eb320705c3 /include/svx/svdhdl.hxx | |
parent | 6b28441fb8823ba28a9db6cf1d97aa277cdcd7b4 (diff) |
remove SdrObject::GetHdl in favour of AddToHdlList
the code already says that using GetHdl is inefficient, and client code
should be using AddToHdlList, so just drop the bad one
Change-Id: I88c43154c8cc0988127b9292e4cda28917f54eb9
Reviewed-on: https://gerrit.libreoffice.org/60792
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/svx/svdhdl.hxx')
-rw-r--r-- | include/svx/svdhdl.hxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/svx/svdhdl.hxx b/include/svx/svdhdl.hxx index 0e954c16dce0..5416ec71c68d 100644 --- a/include/svx/svdhdl.hxx +++ b/include/svx/svdhdl.hxx @@ -461,6 +461,9 @@ public: SdrHdl* RemoveHdl(size_t nNum); void RemoveAllByKind(SdrHdlKind eKind); + // move the ownership of all the SdrHdl to rOther + void MoveTo(SdrHdlList& rOther); + // Last inserted handles are likely hit (if the handles are above each other) SdrHdl* IsHdlListHit(const Point& rPnt) const; SdrHdl* GetHdl(SdrHdlKind eKind1) const; |