diff options
author | Szabolcs Dezsi <dezsiszabi@hotmail.com> | 2012-04-06 19:49:53 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@suse.cz> | 2012-04-06 20:03:42 +0200 |
commit | d6bc02f8c4cd0f50f0a2631ac7634dab408efc1f (patch) | |
tree | b5a12df1fcae025715633469b75ab4c9b6f6d279 /io | |
parent | 0e1c0587617e0a6e4295a13599e97cdf6d1d2ea9 (diff) |
Replaced equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(...)) with == operator
Diffstat (limited to 'io')
-rw-r--r-- | io/source/acceptor/acceptor.cxx | 6 | ||||
-rw-r--r-- | io/source/connector/connector.cxx | 6 |
2 files changed, 4 insertions, 8 deletions
diff --git a/io/source/acceptor/acceptor.cxx b/io/source/acceptor/acceptor.cxx index 62f0e6e4e589..1cdcbefbb6dc 100644 --- a/io/source/acceptor/acceptor.cxx +++ b/io/source/acceptor/acceptor.cxx @@ -160,8 +160,7 @@ namespace io_acceptor try { cppu::UnoUrlDescriptor aDesc(sConnectionDescription); - if (aDesc.getName().equalsAsciiL( - RTL_CONSTASCII_STRINGPARAM("pipe"))) + if ( aDesc.getName() == "pipe" ) { rtl::OUString aName( aDesc.getParameter( @@ -184,8 +183,7 @@ namespace io_acceptor throw; } } - else if (aDesc.getName().equalsAsciiL( - RTL_CONSTASCII_STRINGPARAM("socket"))) + else if ( aDesc.getName() == "socket" ) { rtl::OUString aHost; if (aDesc.hasParameter( diff --git a/io/source/connector/connector.cxx b/io/source/connector/connector.cxx index 674fbbb358b4..dea5099b60a0 100644 --- a/io/source/connector/connector.cxx +++ b/io/source/connector/connector.cxx @@ -101,8 +101,7 @@ namespace stoc_connector cppu::UnoUrlDescriptor aDesc(sConnectionDescription); Reference< XConnection > r; - if (aDesc.getName().equalsAsciiL(RTL_CONSTASCII_STRINGPARAM( - "pipe"))) + if ( aDesc.getName() == "pipe" ) { rtl::OUString aName( aDesc.getParameter( @@ -125,8 +124,7 @@ namespace stoc_connector throw NoConnectException( sMessage ,Reference< XInterface > () ); } } - else if (aDesc.getName().equalsAsciiL(RTL_CONSTASCII_STRINGPARAM( - "socket"))) + else if ( aDesc.getName() == "socket" ) { rtl::OUString aHost; if (aDesc.hasParameter( |