summaryrefslogtreecommitdiff
path: root/embeddedobj/source/general/dummyobject.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'embeddedobj/source/general/dummyobject.cxx')
-rw-r--r--embeddedobj/source/general/dummyobject.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/embeddedobj/source/general/dummyobject.cxx b/embeddedobj/source/general/dummyobject.cxx
index c5cd7b1adf6c..d5a7fc54f7ba 100644
--- a/embeddedobj/source/general/dummyobject.cxx
+++ b/embeddedobj/source/general/dummyobject.cxx
@@ -325,7 +325,7 @@ void SAL_CALL ODummyEmbeddedObject::setPersistentEntry(
uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ),
1 );
- if ( !sEntName.getLength() )
+ if ( sEntName.isEmpty() )
throw lang::IllegalArgumentException( ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "Empty element name is provided!\n" )),
uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ),
2 );
@@ -469,7 +469,7 @@ sal_Bool SAL_CALL ODummyEmbeddedObject::hasEntry()
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "The object waits for saveCompleted() call!\n" )),
uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ) );
- if ( m_aEntryName.getLength() )
+ if ( !m_aEntryName.isEmpty() )
return sal_True;
return sal_False;