diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-01-21 15:53:55 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-01-21 15:54:52 +0100 |
commit | a3f32769fc4bb23c64168b412dd10ec769a3854d (patch) | |
tree | 92bb435946dcfc422c9816bc05c150069a2da3c3 /sfx2/source/appl | |
parent | 35539318cecddc9ccb2904573a894ea05adc432c (diff) |
Fix bogus mass-conversion equalsAsciiL -> startsWith
3af99e4d59d89c343965a928681a30f36b1007d2 "convert equalsAsciiL calls to
startsWith calls" should rather have converted to oprator ==.
Change-Id: Id4a8836c5d6d570e54661c40be7214632e202b21
Diffstat (limited to 'sfx2/source/appl')
-rw-r--r-- | sfx2/source/appl/sfxhelp.cxx | 26 | ||||
-rw-r--r-- | sfx2/source/appl/shutdowniconunx.cxx | 2 |
2 files changed, 14 insertions, 14 deletions
diff --git a/sfx2/source/appl/sfxhelp.cxx b/sfx2/source/appl/sfxhelp.cxx index 7cf1b210a66e..e7fd583d3a19 100644 --- a/sfx2/source/appl/sfxhelp.cxx +++ b/sfx2/source/appl/sfxhelp.cxx @@ -328,21 +328,21 @@ OUString SfxHelp::GetHelpModuleName_Impl() aFactoryShortName = "schart" ; else if ( aFactoryShortName == "BasicIDE" ) aFactoryShortName = "sbasic"; - else if ( aFactoryShortName.startsWith("sweb") - || aFactoryShortName.startsWith("sglobal") - || aFactoryShortName.startsWith("swxform") ) + else if ( aFactoryShortName == "sweb" + || aFactoryShortName == "sglobal" + || aFactoryShortName == "swxform" ) aFactoryShortName = "swriter" ; - else if ( aFactoryShortName.startsWith("dbquery") - || aFactoryShortName.startsWith("dbbrowser") - || aFactoryShortName.startsWith("dbrelation") - || aFactoryShortName.startsWith("dbtable") - || aFactoryShortName.startsWith("dbapp") - || aFactoryShortName.startsWith("dbreport") - || aFactoryShortName.startsWith("swreport") - || aFactoryShortName.startsWith("swform") ) + else if ( aFactoryShortName == "dbquery" + || aFactoryShortName == "dbbrowser" + || aFactoryShortName == "dbrelation" + || aFactoryShortName == "dbtable" + || aFactoryShortName == "dbapp" + || aFactoryShortName == "dbreport" + || aFactoryShortName == "swreport" + || aFactoryShortName == "swform" ) aFactoryShortName = "sdatabase"; - else if ( aFactoryShortName.startsWith("sbibliography") - || aFactoryShortName.startsWith("StartModule") ) + else if ( aFactoryShortName == "sbibliography" + || aFactoryShortName == "StartModule" ) aFactoryShortName = sDefaultModule; } else diff --git a/sfx2/source/appl/shutdowniconunx.cxx b/sfx2/source/appl/shutdowniconunx.cxx index 937cabe8de6d..02bde57458a9 100644 --- a/sfx2/source/appl/shutdowniconunx.cxx +++ b/sfx2/source/appl/shutdowniconunx.cxx @@ -212,7 +212,7 @@ static void add_ugly_db_item( GtkMenuShell *pMenuShell, const char *pAsciiURL, aEntry[m].Value >>= aDescription; } - if ( aURL.startsWith(BASE_URL) && !aDescription.isEmpty() ) + if ( aURL == BASE_URL && !aDescription.isEmpty() ) { add_item (pMenuShell, pAsciiURL, &aDescription, nResId, pFnCallback); break; |