From 29c26f911422c318f277ebf31abb57ed6ad5fd16 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 20 Mar 2013 12:53:38 +0100 Subject: Assume that this shall check full string equality ...instead of prefix match as the use of compareToAscii(RTL_CONSTASCII_STRINGPARAM(...)) would imply. Change-Id: If46b3b5f0675b2a6f32d3300c5fef80d5d20956b --- filter/source/xsltdialog/xmlfiltertestdialog.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'filter') diff --git a/filter/source/xsltdialog/xmlfiltertestdialog.cxx b/filter/source/xsltdialog/xmlfiltertestdialog.cxx index ef3db9df78b8..74c08daf0d20 100644 --- a/filter/source/xsltdialog/xmlfiltertestdialog.cxx +++ b/filter/source/xsltdialog/xmlfiltertestdialog.cxx @@ -91,8 +91,7 @@ GlobalEventListenerImpl::GlobalEventListenerImpl( XMLFilterTestDialog* pDialog ) void SAL_CALL GlobalEventListenerImpl::notifyEvent( const com::sun::star::document::EventObject& Event ) throw (RuntimeException) { ::SolarMutexGuard aGuard; - if( (Event.EventName.compareToAscii( RTL_CONSTASCII_STRINGPARAM("OnFocus") ) == 0) || - (Event.EventName.compareToAscii( RTL_CONSTASCII_STRINGPARAM("OnUnload") ) == 0) ) + if( Event.EventName == "OnFocus" || Event.EventName == "OnUnload" ) { Reference< XComponent > xComp( Event.Source, UNO_QUERY ); mpDialog->updateCurrentDocumentButtonState( &xComp ); -- cgit