summaryrefslogtreecommitdiff
path: root/sc/source/ui/unoobj/eventuno.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/unoobj/eventuno.cxx')
-rw-r--r--sc/source/ui/unoobj/eventuno.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/unoobj/eventuno.cxx b/sc/source/ui/unoobj/eventuno.cxx
index 5539a3f47fe9..5d2b140eb850 100644
--- a/sc/source/ui/unoobj/eventuno.cxx
+++ b/sc/source/ui/unoobj/eventuno.cxx
@@ -94,7 +94,7 @@ void SAL_CALL ScSheetEventsObj::replaceByName( const OUString& aName, const uno:
for (sal_Int32 nPos=0; nPos<nPropCount; ++nPos)
{
const beans::PropertyValue& rProp = aPropSeq[nPos];
- if ( rProp.Name.compareToAscii( SC_UNO_EVENTTYPE ) == 0 )
+ if ( rProp.Name.equalsAscii( SC_UNO_EVENTTYPE ) )
{
OUString aEventType;
if ( rProp.Value >>= aEventType )
@@ -104,7 +104,7 @@ void SAL_CALL ScSheetEventsObj::replaceByName( const OUString& aName, const uno:
throw lang::IllegalArgumentException();
}
}
- else if ( rProp.Name.compareToAscii( SC_UNO_SCRIPT ) == 0 )
+ else if ( rProp.Name.equalsAscii( SC_UNO_SCRIPT ) )
rProp.Value >>= aScript;
}
}