diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-03-20 12:53:38 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-03-20 13:05:34 +0100 |
commit | 29c26f911422c318f277ebf31abb57ed6ad5fd16 (patch) | |
tree | b229d58c722a75559606d4a463e96ed0fdfa0ed7 | |
parent | 0555481e50d7d8c1b59fb608a4e3eea1e39aeac9 (diff) |
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
-rw-r--r-- | filter/source/xsltdialog/xmlfiltertestdialog.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
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 ); |