diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2006-06-19 20:22:57 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2006-06-19 20:22:57 +0000 |
commit | 569e6716594324f327f0a99483b9625de1cb4eb0 (patch) | |
tree | f2051ded171fc46a642775a2f03f9e0f7839fd11 /svtools | |
parent | 13f7cb1c7b580c04d7bd3f8dc43a119cf9940685 (diff) |
INTEGRATION: CWS warnings01 (1.4.60); FILE MERGED
2005/11/15 19:25:43 pl 1.4.60.2: #i55991# removed warnings
2005/10/25 15:07:41 pl 1.4.60.1: #i55991# removed warnings for linux platform
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/notify/brdcst.cxx | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/svtools/source/notify/brdcst.cxx b/svtools/source/notify/brdcst.cxx index 688adb325903..e0e5393a4b11 100644 --- a/svtools/source/notify/brdcst.cxx +++ b/svtools/source/notify/brdcst.cxx @@ -4,9 +4,9 @@ * * $RCSfile: brdcst.cxx,v $ * - * $Revision: 1.4 $ + * $Revision: 1.5 $ * - * last change: $Author: rt $ $Date: 2005-09-08 16:29:18 $ + * last change: $Author: hr $ $Date: 2006-06-19 21:22:57 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -45,13 +45,13 @@ #include "smplhint.hxx" #include "lstner.hxx" -SV_DECL_PTRARR( SfxListenerArr_Impl, SfxListener*, 0, 2 ); +SV_DECL_PTRARR( SfxListenerArr_Impl, SfxListener*, 0, 2 ) #define _SFX_BRDCST_CXX #include "brdcst.hxx" //==================================================================== -DBG_NAME(SfxBroadcaster); +DBG_NAME(SfxBroadcaster) TYPEINIT0(SfxBroadcaster); //==================================================================== @@ -67,16 +67,22 @@ void SfxBroadcaster::Broadcast( const SfxHint &rHint ) // is anybody to notify? if ( aListeners.Count() /*! || aGlobListeners.Count() */ ) { + #if 0 // determine the type only once, because of its expensiveness const TypeId& rBCType = Type(); const TypeId& rHintType = rHint.Type(); + #endif // notify all registered listeners exactly once for ( USHORT n = 0; n < aListeners.Count(); ++n ) { SfxListener* pListener = aListeners[n]; if ( pListener ) + #if 0 pListener->SFX_NOTIFY( *this, rBCType, rHint, rHintType ); + #else + pListener->Notify( *this, rHint ); + #endif } } } |