diff --git a/extensions/source/update/ui/updatecheckui.cxx b/extensions/source/update/ui/updatecheckui.cxx index d11c3a4791f2..1286d184146b 100644 --- a/extensions/source/update/ui/updatecheckui.cxx +++ b/extensions/source/update/ui/updatecheckui.cxx @@ -393,7 +393,7 @@ void SAL_CALL UpdateCheckUI::notifyEvent(const document::EventObject& rEvent) { SolarMutexGuard aGuard; - if( rEvent.EventName.compareToAscii( RTL_CONSTASCII_STRINGPARAM("OnPrepareViewClosing") ) == 0 ) + if( rEvent.EventName.startsWith( "OnPrepareViewClosing" ) ) { RemoveBubbleWindow( true ); } diff --git a/ucb/source/ucp/webdav/DAVProperties.cxx b/ucb/source/ucp/webdav/DAVProperties.cxx index 2c1b7819753b..5b018b6e6344 100644 --- a/ucb/source/ucp/webdav/DAVProperties.cxx +++ b/ucb/source/ucp/webdav/DAVProperties.cxx @@ -52,7 +52,7 @@ const ::rtl::OUString DAVProperties::EXECUTABLE = void DAVProperties::createSerfPropName( const rtl::OUString & rFullName, SerfPropName & rName ) { - if ( rFullName.compareToAscii( RTL_CONSTASCII_STRINGPARAM( "DAV:" ) ) == 0 ) + if ( rFullName.startsWith( "DAV:" ) ) { rName.nspace = "DAV:"; rName.name @@ -60,8 +60,7 @@ void DAVProperties::createSerfPropName( const rtl::OUString & rFullName, rFullName.copy( RTL_CONSTASCII_LENGTH( "DAV:" ) ), RTL_TEXTENCODING_UTF8 ) ); } - else if ( rFullName.compareToAscii( RTL_CONSTASCII_STRINGPARAM( - "http://apache.org/dav/props/" ) ) == 0 ) + else if ( rFullName.startsWith( "http://apache.org/dav/props/" ) ) { rName.nspace = "http://apache.org/dav/props/"; rName.name @@ -71,8 +70,7 @@ void DAVProperties::createSerfPropName( const rtl::OUString & rFullName, "http://apache.org/dav/props/" ) ), RTL_TEXTENCODING_UTF8 ) ); } - else if ( rFullName.compareToAscii( RTL_CONSTASCII_STRINGPARAM( - "http://ucb.openoffice.org/dav/props/" ) ) == 0 ) + else if ( rFullName.startsWith( "http://ucb.openoffice.org/dav/props/" ) ) { rName.nspace = "http://ucb.openoffice.org/dav/props/"; rName.name @@ -82,8 +80,7 @@ void DAVProperties::createSerfPropName( const rtl::OUString & rFullName, "http://ucb.openoffice.org/dav/props/" ) ), RTL_TEXTENCODING_UTF8 ) ); } - else if ( rFullName.compareToAscii( RTL_CONSTASCII_STRINGPARAM( - "