summaryrefslogtreecommitdiff
path: root/ucb/source/ucp/tdoc/tdoc_provider.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'ucb/source/ucp/tdoc/tdoc_provider.cxx')
-rw-r--r--ucb/source/ucp/tdoc/tdoc_provider.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/ucb/source/ucp/tdoc/tdoc_provider.cxx b/ucb/source/ucp/tdoc/tdoc_provider.cxx
index 9b983d5111e3..be5a4f1920fb 100644
--- a/ucb/source/ucp/tdoc/tdoc_provider.cxx
+++ b/ucb/source/ucp/tdoc/tdoc_provider.cxx
@@ -172,7 +172,7 @@ ContentProvider::createDocumentContent(
if ( m_xDocsMgr.is() )
{
rtl::OUString aDocId = m_xDocsMgr->queryDocumentId( Model );
- if ( aDocId.getLength() > 0 )
+ if ( !aDocId.isEmpty() )
{
rtl::OUStringBuffer aBuffer;
aBuffer.appendAscii( TDOC_URL_SCHEME ":/" );
@@ -603,7 +603,7 @@ ContentProvider::queryStorageTitle( const rtl::OUString & rUri ) const
aTitle = aUri.getDecodedName();
}
- OSL_ENSURE( ( aTitle.getLength() > 0 ) || aUri.isRoot(),
+ OSL_ENSURE( !aTitle.isEmpty() || aUri.isRoot(),
"ContentProvider::queryStorageTitle - empty title!" );
return aTitle;
}