diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-11-11 19:15:25 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-11-18 08:31:54 -0500 |
commit | 43f81d78a59fa46ef2ab4e5f0bf1bee1f65afe59 (patch) | |
tree | b92471cebfb0b7ca2411bb05d171ed12d9960a5f | |
parent | a2bdea073c22781762472caad3cf66c7d13e2b7f (diff) |
Make these non-inline and add the const version of the getter.
Change-Id: I8c175dcaaa51e2b05895226907697b070a2e2f77
-rw-r--r-- | include/svl/broadcast.hxx | 3 | ||||
-rw-r--r-- | svl/source/notify/broadcast.cxx | 9 |
2 files changed, 11 insertions, 1 deletions
diff --git a/include/svl/broadcast.hxx b/include/svl/broadcast.hxx index 62e343fe9e99..5615255e030e 100644 --- a/include/svl/broadcast.hxx +++ b/include/svl/broadcast.hxx @@ -56,7 +56,8 @@ public: void Broadcast( const SfxHint &rHint ); - ListenersType& GetAllListeners() { return maListeners;} + ListenersType& GetAllListeners(); + const ListenersType& GetAllListeners() const; bool HasListeners() const; diff --git a/svl/source/notify/broadcast.cxx b/svl/source/notify/broadcast.cxx index 30e7bd0b58a6..c0dfe4f4e69f 100644 --- a/svl/source/notify/broadcast.cxx +++ b/svl/source/notify/broadcast.cxx @@ -138,6 +138,15 @@ void SvtBroadcaster::Broadcast( const SfxHint &rHint ) void SvtBroadcaster::ListenersGone() {} +SvtBroadcaster::ListenersType& SvtBroadcaster::GetAllListeners() +{ + return maListeners; +} + +const SvtBroadcaster::ListenersType& SvtBroadcaster::GetAllListeners() const +{ + return maListeners; +} bool SvtBroadcaster::HasListeners() const { |