diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2018-09-29 17:35:19 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-10-01 08:15:07 +0200 |
commit | 89e2ec08b50d88facd0b100a8be04ab56c1f3ad1 (patch) | |
tree | c1382e834d0f712e4463d09a6b6275ca3b0f1985 /include/svl | |
parent | 89a60912bba7ffd6f65ea99f4664f343c5025c95 (diff) |
don't call back into the SvtBroadcaster when dying
and we don't need to use equal_range on a sorted and uniqued vector,
lower_bound will do
Change-Id: I3f967c04b43432875e3d4de75e6e87bfdef40dc8
Reviewed-on: https://gerrit.libreoffice.org/61135
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/svl')
-rw-r--r-- | include/svl/listener.hxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/svl/listener.hxx b/include/svl/listener.hxx index 5f2850ef7f19..d6dc7b0cddbb 100644 --- a/include/svl/listener.hxx +++ b/include/svl/listener.hxx @@ -28,10 +28,13 @@ class SfxHint; class SVL_DLLPUBLIC SvtListener { + friend class SvtBroadcaster; typedef std::unordered_set<SvtBroadcaster*> BroadcastersType; BroadcastersType maBroadcasters; const SvtListener& operator=(const SvtListener &) = delete; + // called from the SvtBroadcaster destructor + void BroadcasterDying( SvtBroadcaster& rBroadcaster ); public: class SVL_DLLPUBLIC QueryBase |