summaryrefslogtreecommitdiff
path: root/shell/source/backends/kdebe/kdebackend.cxx
diff options
context:
space:
mode:
authorSzabolcs Dezsi <dezsiszabi@hotmail.com>2012-04-06 19:49:53 +0200
committerJan Holesovsky <kendy@suse.cz>2012-04-06 20:03:42 +0200
commitd6bc02f8c4cd0f50f0a2631ac7634dab408efc1f (patch)
treeb5a12df1fcae025715633469b75ab4c9b6f6d279 /shell/source/backends/kdebe/kdebackend.cxx
parent0e1c0587617e0a6e4295a13599e97cdf6d1d2ea9 (diff)
Replaced equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(...)) with == operator
Diffstat (limited to 'shell/source/backends/kdebe/kdebackend.cxx')
-rw-r--r--shell/source/backends/kdebe/kdebackend.cxx34
1 files changed, 6 insertions, 28 deletions
diff --git a/shell/source/backends/kdebe/kdebackend.cxx b/shell/source/backends/kdebe/kdebackend.cxx
index 1a2fb2d49575..64321545111b 100644
--- a/shell/source/backends/kdebe/kdebackend.cxx
+++ b/shell/source/backends/kdebe/kdebackend.cxx
@@ -164,8 +164,7 @@ Service::Service(): enabled_(false) {
rtl::OUString(
RTL_CONSTASCII_USTRINGPARAM("system.desktop-environment"))) >>=
desktop;
- enabled_ = desktop.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("KDE")) &&
- KApplication::kApplication() != 0;
+ enabled_ = desktop == "KDE" && KApplication::kApplication() != 0;
}
}
@@ -186,32 +185,11 @@ css::uno::Any Service::getPropertyValue(rtl::OUString const & PropertyName)
css::beans::UnknownPropertyException, css::lang::WrappedTargetException,
css::uno::RuntimeException)
{
- if (PropertyName.equalsAsciiL(
- RTL_CONSTASCII_STRINGPARAM("EnableATToolSupport")) ||
- PropertyName.equalsAsciiL(
- RTL_CONSTASCII_STRINGPARAM("ExternalMailer")) ||
- PropertyName.equalsAsciiL(
- RTL_CONSTASCII_STRINGPARAM("SourceViewFontHeight")) ||
- PropertyName.equalsAsciiL(
- RTL_CONSTASCII_STRINGPARAM("SourceViewFontName")) ||
- PropertyName.equalsAsciiL(
- RTL_CONSTASCII_STRINGPARAM("WorkPathVariable")) ||
- PropertyName.equalsAsciiL(
- RTL_CONSTASCII_STRINGPARAM("ooInetFTPProxyName")) ||
- PropertyName.equalsAsciiL(
- RTL_CONSTASCII_STRINGPARAM("ooInetFTPProxyPort")) ||
- PropertyName.equalsAsciiL(
- RTL_CONSTASCII_STRINGPARAM("ooInetHTTPProxyName")) ||
- PropertyName.equalsAsciiL(
- RTL_CONSTASCII_STRINGPARAM("ooInetHTTPProxyPort")) ||
- PropertyName.equalsAsciiL(
- RTL_CONSTASCII_STRINGPARAM("ooInetHTTPSProxyName")) ||
- PropertyName.equalsAsciiL(
- RTL_CONSTASCII_STRINGPARAM("ooInetHTTPSProxyPort")) ||
- PropertyName.equalsAsciiL(
- RTL_CONSTASCII_STRINGPARAM("ooInetNoProxy")) ||
- PropertyName.equalsAsciiL(
- RTL_CONSTASCII_STRINGPARAM("ooInetProxyType")))
+ if ( PropertyName == "EnableATToolSupport" || PropertyName == "ExternalMailer" || PropertyName == "SourceViewFontHeight"
+ || PropertyName == "SourceViewFontName" || PropertyName == "WorkPathVariable" || PropertyName == "ooInetFTPProxyName"
+ || PropertyName == "ooInetFTPProxyPort" || PropertyName == "ooInetHTTPProxyName" || PropertyName == "ooInetHTTPProxyPort"
+ || PropertyName == "ooInetHTTPSProxyName" || PropertyName == "ooInetHTTPSProxyPort" || PropertyName == "ooInetNoProxy"
+ || PropertyName == "ooInetProxyType" )
{
return css::uno::makeAny(
enabled_