diff options
Diffstat (limited to 'shell/source/backends/kdebe/kdebackend.cxx')
-rw-r--r-- | shell/source/backends/kdebe/kdebackend.cxx | 34 |
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_ |