summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2008-04-22 14:42:39 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2008-04-22 14:42:39 +0000
commit8f0edaea2607e28972d509b42c01cf056306567b (patch)
tree331add8cec0501309a9e50e61d5910819dae2583 /sfx2
parent120a68cc3714059b8131a72d6f611b3b0ef7814d (diff)
INTEGRATION: CWS hr50 (1.34.88); FILE MERGED
2008/04/10 16:58:47 hr 1.34.88.1: #i86574#: fix warning (gcc-4.2.3)
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/notify/eventsupplier.cxx11
1 files changed, 7 insertions, 4 deletions
diff --git a/sfx2/source/notify/eventsupplier.cxx b/sfx2/source/notify/eventsupplier.cxx
index 8bb832ae3b..6c92cb2ec8 100644
--- a/sfx2/source/notify/eventsupplier.cxx
+++ b/sfx2/source/notify/eventsupplier.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: eventsupplier.cxx,v $
- * $Revision: 1.35 $
+ * $Revision: 1.36 $
*
* This file is part of OpenOffice.org.
*
@@ -224,8 +224,9 @@ static void Execute( ANY& aEventData, SfxObjectShell* pDoc )
aProperties[ nIndex ].Value >>= aLibrary;
else if ( aProperties[ nIndex ].Name.compareToAscii( PROP_MACRO_NAME ) == 0 )
aProperties[ nIndex ].Value >>= aMacroName;
- else
+ else {
DBG_ERROR("Unknown property value!");
+ }
nIndex += 1;
}
@@ -402,8 +403,9 @@ SvxMacro* SfxEvents_Impl::ConvertToMacro( const ANY& rElement, SfxObjectShell* p
aProperties[ nIndex ].Value >>= aLibrary;
else if ( aProperties[ nIndex ].Name.compareToAscii( PROP_MACRO_NAME ) == 0 )
aProperties[ nIndex ].Value >>= aMacroName;
- else
+ else {
DBG_ERROR("Unknown propery value!");
+ }
nIndex += 1;
}
@@ -415,8 +417,9 @@ SvxMacro* SfxEvents_Impl::ConvertToMacro( const ANY& rElement, SfxObjectShell* p
eType = EXTENDED_STYPE;
else if ( aType.compareToAscii( SVX_MACRO_LANGUAGE_JAVASCRIPT ) == COMPARE_EQUAL )
eType = JAVASCRIPT;
- else
+ else {
DBG_ERRORFILE( "ConvertToMacro: Unknown macro type" );
+ }
if ( aMacroName.getLength() )
{