summaryrefslogtreecommitdiff
path: root/binaryurp/source/bridge.cxx
diff options
context:
space:
mode:
authorOlivier Hallot <olivier.hallot@alta.org.br>2011-12-10 17:29:21 -0200
committerIvan Timofeev <timofeev.i.s@gmail.com>2011-12-13 00:11:25 +0400
commit9201704ede70498a850bee6d15f0340d58f3889c (patch)
tree56a01cff17d5f5c707d113c9fd2081fd4a640ac9 /binaryurp/source/bridge.cxx
parent96692c301d67bd74f9a97f6b998bec6314be1b44 (diff)
Fix for fdo43460 Part IV getLength to isEmpty
Part IV Module basic (small fix per demand from Ivan Timofeev) binaryurp bridges
Diffstat (limited to 'binaryurp/source/bridge.cxx')
-rw-r--r--binaryurp/source/bridge.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/binaryurp/source/bridge.cxx b/binaryurp/source/bridge.cxx
index b491a2adc77f..389284d96b7e 100644
--- a/binaryurp/source/bridge.cxx
+++ b/binaryurp/source/bridge.cxx
@@ -345,7 +345,7 @@ css::uno::UnoInterfaceReference Bridge::registerIncomingInterface(
rtl::OUString const & oid, css::uno::TypeDescription const & type)
{
assert(type.is());
- if (oid.getLength() == 0) {
+ if (oid.isEmpty()) {
return css::uno::UnoInterfaceReference();
}
css::uno::UnoInterfaceReference obj(findStub(oid, type));
@@ -427,7 +427,7 @@ rtl::OUString Bridge::registerOutgoingInterface(
css::uno::UnoInterfaceReference Bridge::findStub(
rtl::OUString const & oid, css::uno::TypeDescription const & type)
{
- assert(oid.getLength() != 0 && type.is());
+ assert(!oid.isEmpty() && type.is());
osl::MutexGuard g(mutex_);
Stubs::iterator i(stubs_.find(oid));
if (i != stubs_.end()) {
@@ -449,7 +449,7 @@ css::uno::UnoInterfaceReference Bridge::findStub(
void Bridge::releaseStub(
rtl::OUString const & oid, css::uno::TypeDescription const & type)
{
- assert(oid.getLength() != 0 && type.is());
+ assert(!oid.isEmpty() && type.is());
css::uno::UnoInterfaceReference obj;
bool unused;
{
@@ -814,7 +814,7 @@ Bridge::~Bridge() {
css::uno::Reference< css::uno::XInterface > Bridge::getInstance(
rtl::OUString const & sInstanceName) throw (css::uno::RuntimeException)
{
- if (sInstanceName.getLength() == 0) {
+ if (sInstanceName.isEmpty()) {
throw css::uno::RuntimeException(
rtl::OUString(
RTL_CONSTASCII_USTRINGPARAM(