summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-11-21 15:52:45 +0200
committerNoel Grandin <noel@peralex.com>2013-11-22 08:07:19 +0200
commit73342dbb82ba074d01962359dac50fb2aa36cbeb (patch)
treeaddab0397681725810b42ad55ab15be3fdb4c236 /shell
parent071c3f3e93c4c00cf57ce3c382325cd717fed511 (diff)
remove unnecessary RTL_CONSTASCII_STRINGPARAM
A final pass through the code, converting code to use the new OUString and OString methods that can detect string literals. Change-Id: Ifa6382335e5650a1c67e52006b26354e0692c710
Diffstat (limited to 'shell')
-rw-r--r--shell/source/backends/kde4be/kde4access.cxx30
-rw-r--r--shell/source/backends/kdebe/kdeaccess.cxx30
2 files changed, 20 insertions, 40 deletions
diff --git a/shell/source/backends/kde4be/kde4access.cxx b/shell/source/backends/kde4be/kde4access.cxx
index 4961d7047c49..4cf3869aa871 100644
--- a/shell/source/backends/kde4be/kde4access.cxx
+++ b/shell/source/backends/kde4be/kde4access.cxx
@@ -60,8 +60,7 @@ css::beans::Optional< css::uno::Any > getValue(OUString const & id) {
sClientProgram = (const sal_Unicode *) aClientProgram.utf16();
return css::beans::Optional< css::uno::Any >(
true, uno::makeAny( sClientProgram ) );
- } else if (id.equalsAsciiL(
- RTL_CONSTASCII_STRINGPARAM("SourceViewFontHeight")))
+ } else if (id == "SourceViewFontHeight")
{
QFont aFixedFont;
short nFontHeight;
@@ -70,8 +69,7 @@ css::beans::Optional< css::uno::Any > getValue(OUString const & id) {
nFontHeight = aFixedFont.pointSize();
return css::beans::Optional< css::uno::Any >(
true, uno::makeAny( nFontHeight ) );
- } else if (id.equalsAsciiL(
- RTL_CONSTASCII_STRINGPARAM("SourceViewFontName")))
+ } else if (id == "SourceViewFontName")
{
QFont aFixedFont;
QString aFontName;
@@ -82,15 +80,13 @@ css::beans::Optional< css::uno::Any > getValue(OUString const & id) {
sFontName = (const sal_Unicode *) aFontName.utf16();
return css::beans::Optional< css::uno::Any >(
true, uno::makeAny( sFontName ) );
- } else if (id.equalsAsciiL(
- RTL_CONSTASCII_STRINGPARAM("EnableATToolSupport")))
+ } else if (id == "EnableATToolSupport")
{
/* does not make much sense without an accessibility bridge */
sal_Bool ATToolSupport = sal_False;
return css::beans::Optional< css::uno::Any >(
true, uno::makeAny( OUString::boolean( ATToolSupport ) ) );
- } else if (id.equalsAsciiL(
- RTL_CONSTASCII_STRINGPARAM("WorkPathVariable")))
+ } else if (id == "WorkPathVariable")
{
QString aDocumentsDir( KGlobalSettings::documentPath() );
OUString sDocumentsDir;
@@ -101,8 +97,7 @@ css::beans::Optional< css::uno::Any > getValue(OUString const & id) {
osl_getFileURLFromSystemPath( sDocumentsDir.pData, &sDocumentsURL.pData );
return css::beans::Optional< css::uno::Any >(
true, uno::makeAny( sDocumentsURL ) );
- } else if (id.equalsAsciiL(
- RTL_CONSTASCII_STRINGPARAM("ooInetFTPProxyName")))
+ } else if (id == "ooInetFTPProxyName")
{
QString aFTPProxy;
switch ( KProtocolManager::proxyType() )
@@ -128,8 +123,7 @@ css::beans::Optional< css::uno::Any > getValue(OUString const & id) {
return css::beans::Optional< css::uno::Any >(
true, uno::makeAny( sProxy ) );
}
- } else if (id.equalsAsciiL(
- RTL_CONSTASCII_STRINGPARAM("ooInetFTPProxyPort")))
+ } else if (id == "ooInetFTPProxyPort")
{
QString aFTPProxy;
switch ( KProtocolManager::proxyType() )
@@ -155,8 +149,7 @@ css::beans::Optional< css::uno::Any > getValue(OUString const & id) {
return css::beans::Optional< css::uno::Any >(
true, uno::makeAny( nPort ) );
}
- } else if (id.equalsAsciiL(
- RTL_CONSTASCII_STRINGPARAM("ooInetHTTPProxyName")))
+ } else if (id == "ooInetHTTPProxyName")
{
QString aHTTPProxy;
switch ( KProtocolManager::proxyType() )
@@ -182,8 +175,7 @@ css::beans::Optional< css::uno::Any > getValue(OUString const & id) {
return css::beans::Optional< css::uno::Any >(
true, uno::makeAny( sProxy ) );
}
- } else if (id.equalsAsciiL(
- RTL_CONSTASCII_STRINGPARAM("ooInetHTTPProxyPort")))
+ } else if (id == "ooInetHTTPProxyPort")
{
QString aHTTPProxy;
switch ( KProtocolManager::proxyType() )
@@ -209,8 +201,7 @@ css::beans::Optional< css::uno::Any > getValue(OUString const & id) {
return css::beans::Optional< css::uno::Any >(
true, uno::makeAny( nPort ) );
}
- } else if (id.equalsAsciiL(
- RTL_CONSTASCII_STRINGPARAM("ooInetHTTPSProxyName")))
+ } else if (id == "ooInetHTTPSProxyName")
{
QString aHTTPSProxy;
switch ( KProtocolManager::proxyType() )
@@ -236,8 +227,7 @@ css::beans::Optional< css::uno::Any > getValue(OUString const & id) {
return css::beans::Optional< css::uno::Any >(
true, uno::makeAny( sProxy ) );
}
- } else if (id.equalsAsciiL(
- RTL_CONSTASCII_STRINGPARAM("ooInetHTTPSProxyPort")))
+ } else if (id == "ooInetHTTPSProxyPort")
{
QString aHTTPSProxy;
switch ( KProtocolManager::proxyType() )
diff --git a/shell/source/backends/kdebe/kdeaccess.cxx b/shell/source/backends/kdebe/kdeaccess.cxx
index c4636aa7e3d1..cff355f0bd1a 100644
--- a/shell/source/backends/kdebe/kdeaccess.cxx
+++ b/shell/source/backends/kdebe/kdeaccess.cxx
@@ -56,8 +56,7 @@ css::beans::Optional< css::uno::Any > getValue(OUString const & id) {
sClientProgram = (const sal_Unicode *) aClientProgram.ucs2();
return css::beans::Optional< css::uno::Any >(
true, uno::makeAny( sClientProgram ) );
- } else if (id.equalsAsciiL(
- RTL_CONSTASCII_STRINGPARAM("SourceViewFontHeight")))
+ } else if (id == "SourceViewFontHeight")
{
QFont aFixedFont;
short nFontHeight;
@@ -66,8 +65,7 @@ css::beans::Optional< css::uno::Any > getValue(OUString const & id) {
nFontHeight = aFixedFont.pointSize();
return css::beans::Optional< css::uno::Any >(
true, uno::makeAny( nFontHeight ) );
- } else if (id.equalsAsciiL(
- RTL_CONSTASCII_STRINGPARAM("SourceViewFontName")))
+ } else if (id == "SourceViewFontName")
{
QFont aFixedFont;
QString aFontName;
@@ -78,15 +76,13 @@ css::beans::Optional< css::uno::Any > getValue(OUString const & id) {
sFontName = (const sal_Unicode *) aFontName.ucs2();
return css::beans::Optional< css::uno::Any >(
true, uno::makeAny( sFontName ) );
- } else if (id.equalsAsciiL(
- RTL_CONSTASCII_STRINGPARAM("EnableATToolSupport")))
+ } else if (id == "EnableATToolSupport")
{
/* does not make much sense without an accessibility bridge */
sal_Bool ATToolSupport = sal_False;
return css::beans::Optional< css::uno::Any >(
true, uno::makeAny( OUString::boolean( ATToolSupport ) ) );
- } else if (id.equalsAsciiL(
- RTL_CONSTASCII_STRINGPARAM("WorkPathVariable")))
+ } else if (id == "WorkPathVariable")
{
QString aDocumentsDir( KGlobalSettings::documentPath() );
OUString sDocumentsDir;
@@ -97,8 +93,7 @@ css::beans::Optional< css::uno::Any > getValue(OUString const & id) {
osl_getFileURLFromSystemPath( sDocumentsDir.pData, &sDocumentsURL.pData );
return css::beans::Optional< css::uno::Any >(
true, uno::makeAny( sDocumentsURL ) );
- } else if (id.equalsAsciiL(
- RTL_CONSTASCII_STRINGPARAM("ooInetFTPProxyName")))
+ } else if (id == "ooInetFTPProxyName")
{
QString aFTPProxy;
switch ( KProtocolManager::proxyType() )
@@ -124,8 +119,7 @@ css::beans::Optional< css::uno::Any > getValue(OUString const & id) {
return css::beans::Optional< css::uno::Any >(
true, uno::makeAny( sProxy ) );
}
- } else if (id.equalsAsciiL(
- RTL_CONSTASCII_STRINGPARAM("ooInetFTPProxyPort")))
+ } else if (id == "ooInetFTPProxyPort")
{
QString aFTPProxy;
switch ( KProtocolManager::proxyType() )
@@ -151,8 +145,7 @@ css::beans::Optional< css::uno::Any > getValue(OUString const & id) {
return css::beans::Optional< css::uno::Any >(
true, uno::makeAny( nPort ) );
}
- } else if (id.equalsAsciiL(
- RTL_CONSTASCII_STRINGPARAM("ooInetHTTPProxyName")))
+ } else if (id == "ooInetHTTPProxyName")
{
QString aHTTPProxy;
switch ( KProtocolManager::proxyType() )
@@ -178,8 +171,7 @@ css::beans::Optional< css::uno::Any > getValue(OUString const & id) {
return css::beans::Optional< css::uno::Any >(
true, uno::makeAny( sProxy ) );
}
- } else if (id.equalsAsciiL(
- RTL_CONSTASCII_STRINGPARAM("ooInetHTTPProxyPort")))
+ } else if (id == "ooInetHTTPProxyPort")
{
QString aHTTPProxy;
switch ( KProtocolManager::proxyType() )
@@ -205,8 +197,7 @@ css::beans::Optional< css::uno::Any > getValue(OUString const & id) {
return css::beans::Optional< css::uno::Any >(
true, uno::makeAny( nPort ) );
}
- } else if (id.equalsAsciiL(
- RTL_CONSTASCII_STRINGPARAM("ooInetHTTPSProxyName")))
+ } else if (id == "ooInetHTTPSProxyName")
{
QString aHTTPSProxy;
switch ( KProtocolManager::proxyType() )
@@ -232,8 +223,7 @@ css::beans::Optional< css::uno::Any > getValue(OUString const & id) {
return css::beans::Optional< css::uno::Any >(
true, uno::makeAny( sProxy ) );
}
- } else if (id.equalsAsciiL(
- RTL_CONSTASCII_STRINGPARAM("ooInetHTTPSProxyPort")))
+ } else if (id == "ooInetHTTPSProxyPort")
{
QString aHTTPSProxy;
switch ( KProtocolManager::proxyType() )