diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-11-25 00:02:21 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-11-25 10:00:14 -0500 |
commit | 0dae7466fff1e742543ef7512b7dd22472c75624 (patch) | |
tree | c9f146abd01a7cabd81944fd794c133cdecadca3 /include | |
parent | 8c041824b67caa53d3f7f96803b7a69ced6614b5 (diff) |
Adjust ref undo to ensure group area listeners are used.
When undoing row deletion (and possibly other similar undo's). And
write test for it.
Change-Id: I04b4fd9932f4236f124dcd25967355c6055dec33
Diffstat (limited to 'include')
-rw-r--r-- | include/svl/broadcast.hxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/svl/broadcast.hxx b/include/svl/broadcast.hxx index 5615255e030e..a73abea3956e 100644 --- a/include/svl/broadcast.hxx +++ b/include/svl/broadcast.hxx @@ -41,7 +41,7 @@ private: * entries. As a side effect, the listeners get sorted by pointer values * after this call. */ - void Normalize(); + void Normalize() const; void Add( SvtListener* p ); void Remove( SvtListener* p ); @@ -74,16 +74,16 @@ public: void PrepareForDestruction(); private: - ListenersType maListeners; + mutable ListenersType maListeners; /// When the broadcaster is about to die, collect listeners that asked for removal. - ListenersType maDestructedListeners; + mutable 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; - bool mbDestNormalized:1; + mutable bool mbNormalized:1; + mutable bool mbDestNormalized:1; }; |