summaryrefslogtreecommitdiff
path: root/binaryurp
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 /binaryurp
parent0e1c0587617e0a6e4295a13599e97cdf6d1d2ea9 (diff)
Replaced equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(...)) with == operator
Diffstat (limited to 'binaryurp')
-rw-r--r--binaryurp/source/bridge.cxx3
-rw-r--r--binaryurp/source/bridgefactory.cxx3
-rw-r--r--binaryurp/source/writer.cxx3
3 files changed, 3 insertions, 6 deletions
diff --git a/binaryurp/source/bridge.cxx b/binaryurp/source/bridge.cxx
index 7718c53a8266..50b873f6a70f 100644
--- a/binaryurp/source/bridge.cxx
+++ b/binaryurp/source/bridge.cxx
@@ -744,8 +744,7 @@ void Bridge::handleCommitChangeRequest(
assert(ok);
(void) ok; // avoid warnings
for (sal_Int32 i = 0; i != s.getLength(); ++i) {
- if (s[i].Name.equalsAsciiL(
- RTL_CONSTASCII_STRINGPARAM("CurrentContext")))
+ if ( s[i].Name == "CurrentContext" )
{
ccMode = true;
} else {
diff --git a/binaryurp/source/bridgefactory.cxx b/binaryurp/source/bridgefactory.cxx
index f3e06ab25e8c..de7762f3d6ed 100644
--- a/binaryurp/source/bridgefactory.cxx
+++ b/binaryurp/source/bridgefactory.cxx
@@ -142,8 +142,7 @@ css::uno::Reference< css::bridge::XBridge > BridgeFactory::createBridge(
throw css::bridge::BridgeExistsException(
sName, static_cast< cppu::OWeakObject * >(this));
}
- if (!(sProtocol.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("urp")) &&
- aConnection.is()))
+ if ( sProtocol != "urp" || !aConnection.is() )
{
throw css::lang::IllegalArgumentException(
rtl::OUString(
diff --git a/binaryurp/source/writer.cxx b/binaryurp/source/writer.cxx
index f5ded2927fea..e1b2291ff28a 100644
--- a/binaryurp/source/writer.cxx
+++ b/binaryurp/source/writer.cxx
@@ -169,8 +169,7 @@ void Writer::execute() {
if (item.request) {
sendRequest(
item.tid, item.oid, item.type, item.member, item.arguments,
- (!item.oid.equalsAsciiL(
- RTL_CONSTASCII_STRINGPARAM("UrpProtocolProperties")) &&
+ (item.oid != "UrpProtocolProperties" &&
!item.member.equals(
css::uno::TypeDescription(
rtl::OUString(