diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-03-14 23:15:32 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-03-15 00:15:06 -0400 |
commit | 88955714d345d8584e86ae34bf5f5d1f3f4af9f7 (patch) | |
tree | 0ff18e33c5cf692327f5187331b47fecce53b2a0 /svl/source | |
parent | 980898058f1411d234c009caaae58b29eb3420c8 (diff) |
fdo#71491: Adjust reference during undo of drag-n-drop of cell range.
Also with this commit, the signature of SvtListener::Notify() changes,
by dropping the first argument which nobody uses. This change was necessary
in order to call it directly without needing to pass any broadcaster instance.
Change-Id: I6a1e97f0fb1e070d1d8f7db614690b04c9e8024e
Diffstat (limited to 'svl/source')
-rw-r--r-- | svl/source/notify/broadcast.cxx | 2 | ||||
-rw-r--r-- | svl/source/notify/listener.cxx | 10 |
2 files changed, 2 insertions, 10 deletions
diff --git a/svl/source/notify/broadcast.cxx b/svl/source/notify/broadcast.cxx index 19abe3878684..753cbc8a14ef 100644 --- a/svl/source/notify/broadcast.cxx +++ b/svl/source/notify/broadcast.cxx @@ -132,7 +132,7 @@ void SvtBroadcaster::Broadcast( const SfxHint &rHint ) ++dest; if (dest == maDestructedListeners.end() || *dest != *it) - (*it)->Notify(*this, rHint); + (*it)->Notify(rHint); } } diff --git a/svl/source/notify/listener.cxx b/svl/source/notify/listener.cxx index 59d3ef9f3352..66207bf4c0bc 100644 --- a/svl/source/notify/listener.cxx +++ b/svl/source/notify/listener.cxx @@ -80,15 +80,7 @@ bool SvtListener::HasBroadcaster() const return !maBroadcasters.empty(); } -void SvtListener::Notify( SvtBroadcaster& -#ifdef DBG_UTIL -rBC -#endif -, const SfxHint& ) -{ - DBG_ASSERT( IsListening( rBC ), - "notification from unregistered broadcaster" ); -} +void SvtListener::Notify( const SfxHint& ) {} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |