diff options
author | Noel Grandin <noel@peralex.com> | 2014-06-04 08:54:40 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-06-04 11:52:31 +0200 |
commit | adc20c3937f3119d39af5a0c8e4a439d8127fe63 (patch) | |
tree | 8722ff80bf1cc00e8d099a87767e2290aaab0aa4 /xmlhelp | |
parent | 06a09dd0ad1e8afcf69e877501036e068d477438 (diff) |
compareToAscii -> equalsAscii
convert places using compareToAscii that should be using equalsAscii
Change-Id: I97b4da7f6e867c3967b2f65b70d6886f83b4a4e5
Diffstat (limited to 'xmlhelp')
-rw-r--r-- | xmlhelp/source/cxxhelp/provider/databases.cxx | 2 | ||||
-rw-r--r-- | xmlhelp/source/cxxhelp/provider/provider.cxx | 2 | ||||
-rw-r--r-- | xmlhelp/source/cxxhelp/provider/urlparameter.cxx | 2 | ||||
-rw-r--r-- | xmlhelp/source/treeview/tvfactory.cxx | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/xmlhelp/source/cxxhelp/provider/databases.cxx b/xmlhelp/source/cxxhelp/provider/databases.cxx index 73bf69ea48f0..31f96c5e4a4a 100644 --- a/xmlhelp/source/cxxhelp/provider/databases.cxx +++ b/xmlhelp/source/cxxhelp/provider/databases.cxx @@ -419,7 +419,7 @@ const std::vector< OUString >& Databases::getModuleList( const OUString& Languag ( str[idx + 1] == 'c' || str[idx + 1] == 'C' ) && ( str[idx + 2] == 'f' || str[idx + 2] == 'F' ) && ( str[idx + 3] == 'g' || str[idx + 3] == 'G' ) && - ( fileName = fileName.copy(0,idx).toAsciiLowerCase() ).compareToAscii( "picture" ) != 0 ) { + !( fileName = fileName.copy(0,idx).toAsciiLowerCase() ).equalsAscii( "picture" ) ) { if(! m_bShowBasic && fileName.equalsAscii("sbasic") ) continue; m_avModules.push_back( fileName ); diff --git a/xmlhelp/source/cxxhelp/provider/provider.cxx b/xmlhelp/source/cxxhelp/provider/provider.cxx index 88937f553dd8..2d4cb92b089a 100644 --- a/xmlhelp/source/cxxhelp/provider/provider.cxx +++ b/xmlhelp/source/cxxhelp/provider/provider.cxx @@ -246,7 +246,7 @@ ContentProvider::elementReplaced(const container::ContainerEvent& Event) OUString accessor; Event.Accessor >>= accessor; - if(accessor.compareToAscii("HelpStyleSheet")) + if(!accessor.equalsAscii("HelpStyleSheet")) return; OUString replacedElement,element; diff --git a/xmlhelp/source/cxxhelp/provider/urlparameter.cxx b/xmlhelp/source/cxxhelp/provider/urlparameter.cxx index 1e0a670229c3..174aef46ed09 100644 --- a/xmlhelp/source/cxxhelp/provider/urlparameter.cxx +++ b/xmlhelp/source/cxxhelp/provider/urlparameter.cxx @@ -158,7 +158,7 @@ OUString URLParameter::get_title() { if( isFile() ) return get_the_title(); - else if( m_aModule.compareToAscii("") != 0 ) + else if( !m_aModule.equalsAscii("") ) { StaticModuleInformation* inf = m_pDatabases->getStaticInformationForModule( get_module(), diff --git a/xmlhelp/source/treeview/tvfactory.cxx b/xmlhelp/source/treeview/tvfactory.cxx index d0bd2e955264..110fbfbb1f97 100644 --- a/xmlhelp/source/treeview/tvfactory.cxx +++ b/xmlhelp/source/treeview/tvfactory.cxx @@ -108,7 +108,7 @@ TVFactory::createInstanceWithArguments( if( ! ( Arguments[i] >>= pV ) ) continue; - if( pV.Name.compareToAscii( "nodepath" ) ) + if( !pV.Name.equalsAscii( "nodepath" ) ) continue; if( ! ( pV.Value >>= hierview ) ) |