summaryrefslogtreecommitdiff
path: root/framework/source/helper
diff options
context:
space:
mode:
authorFridrich Štrba <fridrich.strba@bluewin.ch>2013-07-29 01:35:35 +0200
committerFridrich Štrba <fridrich.strba@bluewin.ch>2013-07-29 01:35:35 +0200
commitd798d26bc4b7572ed10d6baf5aef7382269d7da5 (patch)
tree42897d9a9e7b9f5c0699647ad552a466df206f1a /framework/source/helper
parente62fec4075e55fd62a3f0d25b230498e5705dd26 (diff)
Remove some occurrences of RTL_CONSTASCII_STRINGPARAM and equalsAsciiL
Change-Id: I7acc31f819be6552344073fa032085d01622fca3
Diffstat (limited to 'framework/source/helper')
-rw-r--r--framework/source/helper/titlebarupdate.cxx20
1 files changed, 10 insertions, 10 deletions
diff --git a/framework/source/helper/titlebarupdate.cxx b/framework/source/helper/titlebarupdate.cxx
index c62d48ba7517..c85c4b63bd4a 100644
--- a/framework/source/helper/titlebarupdate.cxx
+++ b/framework/source/helper/titlebarupdate.cxx
@@ -155,10 +155,10 @@ void TitleBarUpdate::impl_updateApplicationID(const css::uno::Reference< css::fr
OUString aModuleId = xModuleManager->identify(xFrame);
OUString sDesktopName;
#if !defined(MACOSX)
- if ( aModuleId.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("com.sun.star.text.TextDocument")) ||
- aModuleId.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("com.sun.star.text.GlobalDocument")) ||
- aModuleId.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("com.sun.star.text.WebDocument")) ||
- aModuleId.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("com.sun.star.xforms.XMLFormDocument")) )
+ if ( aModuleId == "com.sun.star.text.TextDocument" ||
+ aModuleId == "com.sun.star.text.GlobalDocument" ||
+ aModuleId == "com.sun.star.text.WebDocument" ||
+ aModuleId == "com.sun.star.xforms.XMLFormDocument" )
sDesktopName = OUString("Writer");
else if ( aModuleId == "com.sun.star.sheet.SpreadsheetDocument" )
sDesktopName = OUString("Calc");
@@ -168,12 +168,12 @@ void TitleBarUpdate::impl_updateApplicationID(const css::uno::Reference< css::fr
sDesktopName = OUString("Draw");
else if ( aModuleId == "com.sun.star.formula.FormulaProperties" )
sDesktopName = OUString("Math");
- else if ( aModuleId.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("com.sun.star.sdb.DatabaseDocument")) ||
- aModuleId.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("com.sun.star.sdb.OfficeDatabaseDocument")) ||
- aModuleId.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("com.sun.star.sdb.RelationDesign")) ||
- aModuleId.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("com.sun.star.sdb.QueryDesign")) ||
- aModuleId.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("com.sun.star.sdb.TableDesign")) ||
- aModuleId.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("com.sun.star.sdb.DataSourceBrowser")) )
+ else if ( aModuleId == "com.sun.star.sdb.DatabaseDocument" ||
+ aModuleId == "com.sun.star.sdb.OfficeDatabaseDocument" ||
+ aModuleId == "com.sun.star.sdb.RelationDesign" ||
+ aModuleId == "com.sun.star.sdb.QueryDesign" ||
+ aModuleId == "com.sun.star.sdb.TableDesign" ||
+ aModuleId == "com.sun.star.sdb.DataSourceBrowser" )
sDesktopName = OUString("Base");
else
sDesktopName = OUString("Startcenter");