summaryrefslogtreecommitdiff
path: root/include/svl/broadcast.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'include/svl/broadcast.hxx')
-rw-r--r--include/svl/broadcast.hxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/svl/broadcast.hxx b/include/svl/broadcast.hxx
index d122e02594c6..72ac3036cd28 100644
--- a/include/svl/broadcast.hxx
+++ b/include/svl/broadcast.hxx
@@ -70,10 +70,15 @@ public:
* themselves from the broadcaster - the broadcaster will not broadcast
* anything after the PrepareForDesctruction() call anyway.
*/
- void PrepareForDestruction() { mbAboutToDie = true; }
+ void PrepareForDestruction();
private:
ListenersType maListeners;
+
+ /// When the broadcaster is about to die, collect listeners that asked for removal.
+ ListenersType maDestructedListeners;
+
+ /// Indicate that this broadcaster will be destructed (we indicate this on all ScColumn's broadcasters during the ScTable destruction, eg.)
bool mbAboutToDie:1;
bool mbDisposing:1;
bool mbNormalized:1;