summaryrefslogtreecommitdiff
path: root/shell/source/backends/kde4be/kde4backend.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'shell/source/backends/kde4be/kde4backend.cxx')
-rw-r--r--shell/source/backends/kde4be/kde4backend.cxx34
1 files changed, 6 insertions, 28 deletions
diff --git a/shell/source/backends/kde4be/kde4backend.cxx b/shell/source/backends/kde4be/kde4backend.cxx
index 2503e9bafe91..1c87c48a02ec 100644
--- a/shell/source/backends/kde4be/kde4backend.cxx
+++ b/shell/source/backends/kde4be/kde4backend.cxx
@@ -164,8 +164,7 @@ Service::Service(): enabled_(false) {
rtl::OUString(
RTL_CONSTASCII_USTRINGPARAM("system.desktop-environment"))) >>=
desktop;
- enabled_ = desktop.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("KDE4")) &&
- KApplication::kApplication() != 0;
+ enabled_ = desktop == "KDE4" && 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_