From db08c1ac5ed566fbec4d2ce8345ed483fa8bf9ab Mon Sep 17 00:00:00 2001 From: Olivier Hallot Date: Sun, 8 Jan 2012 09:52:25 -0200 Subject: Fix for fdo43460 Part XXXI getLength() to isEmpty() Part XXXI Modules sd --- sd/source/ui/annotations/annotationmanager.cxx | 2 +- sd/source/ui/annotations/annotationwindow.cxx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'sd/source/ui/annotations') diff --git a/sd/source/ui/annotations/annotationmanager.cxx b/sd/source/ui/annotations/annotationmanager.cxx index fac02eb1c0f3..972ba0aef700 100644 --- a/sd/source/ui/annotations/annotationmanager.cxx +++ b/sd/source/ui/annotations/annotationmanager.cxx @@ -473,7 +473,7 @@ void AnnotationManagerImpl::ExecuteReplyToAnnotation( SfxRequest& rReq ) String aStr(SdResId(STR_ANNOTATION_REPLY)); OUString sAuthor( xAnnotation->getAuthor() ); - if( sAuthor.getLength() == 0 ) + if( sAuthor.isEmpty() ) sAuthor = String( SdResId( STR_ANNOTATION_NOAUTHOR ) ); aStr.SearchAndReplaceAscii("%1", sAuthor); diff --git a/sd/source/ui/annotations/annotationwindow.cxx b/sd/source/ui/annotations/annotationwindow.cxx index f679972aac38..56470b875bf3 100644 --- a/sd/source/ui/annotations/annotationwindow.cxx +++ b/sd/source/ui/annotations/annotationwindow.cxx @@ -577,9 +577,9 @@ void AnnotationWindow::setAnnotation( const Reference< XAnnotation >& xAnnotatio OUString sMeta( xAnnotation->getAuthor() ); OUString sDateTime( getAnnotationDateTimeString(xAnnotation) ); - if( sDateTime.getLength() != 0 ) + if( !sDateTime.isEmpty() ) { - if( sMeta.getLength() != 0 ) + if( !sMeta.isEmpty() ) sMeta += OUString( RTL_CONSTASCII_USTRINGPARAM( "\n" ) ); sMeta += sDateTime; -- cgit