summaryrefslogtreecommitdiff
path: root/uui
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 /uui
parent0e1c0587617e0a6e4295a13599e97cdf6d1d2ea9 (diff)
Replaced equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(...)) with == operator
Diffstat (limited to 'uui')
-rw-r--r--uui/source/iahndl-ioexceptions.cxx11
-rw-r--r--uui/source/iahndl.cxx4
2 files changed, 4 insertions, 11 deletions
diff --git a/uui/source/iahndl-ioexceptions.cxx b/uui/source/iahndl-ioexceptions.cxx
index 8d21c8f99948..2103e0318a95 100644
--- a/uui/source/iahndl-ioexceptions.cxx
+++ b/uui/source/iahndl-ioexceptions.cxx
@@ -248,9 +248,7 @@ UUIInteractionHelper::handleInteractiveIOException(
RTL_CONSTASCII_USTRINGPARAM(
"Removable")),
&bRemovable);
- nErrorCode
- = aResourceType.equalsAsciiL(
- RTL_CONSTASCII_STRINGPARAM("volume"))
+ nErrorCode = aResourceType == "volume"
? (bRemovable
? ERRCODE_UUI_IO_NOTREADY_VOLUME_REMOVABLE
: ERRCODE_UUI_IO_NOTREADY_VOLUME)
@@ -301,12 +299,9 @@ UUIInteractionHelper::handleInteractiveIOException(
rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(
"ResourceType")),
&aResourceType);
- nErrorCode
- = aResourceType.equalsAsciiL(
- RTL_CONSTASCII_STRINGPARAM("volume"))
+ nErrorCode = aResourceType == "volume"
? ERRCODE_UUI_IO_NOTEXISTS_VOLUME
- : (aResourceType.equalsAsciiL(
- RTL_CONSTASCII_STRINGPARAM("folder"))
+ : (aResourceType == "folder"
? ERRCODE_UUI_IO_NOTEXISTS_FOLDER
: ERRCODE_UUI_IO_NOTEXISTS);
aArguments.push_back(aArgUri);
diff --git a/uui/source/iahndl.cxx b/uui/source/iahndl.cxx
index 38739bd9f3ed..4011f6a16324 100644
--- a/uui/source/iahndl.cxx
+++ b/uui/source/iahndl.cxx
@@ -1123,9 +1123,7 @@ UUIInteractionHelper::getContextProperty()
for (sal_Int32 i = 0; i < m_aProperties.getLength(); ++i)
{
beans::PropertyValue aProperty;
- if ((m_aProperties[i] >>= aProperty)
- && aProperty.
- Name.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("Context")))
+ if ((m_aProperties[i] >>= aProperty) && aProperty.Name == "Context" )
{
rtl::OUString aContext;
aProperty.Value >>= aContext;