summaryrefslogtreecommitdiff
path: root/sd/source/ui/annotations
diff options
context:
space:
mode:
authorOlivier Hallot <olivier.hallot@alta.org.br>2012-01-08 09:52:25 -0200
committerOlivier Hallot <olivier.hallot@alta.org.br>2012-01-10 23:08:01 -0200
commitdb08c1ac5ed566fbec4d2ce8345ed483fa8bf9ab (patch)
treebc321e6f2f15c95b3bba78f1e2f8514f0eeb894a /sd/source/ui/annotations
parent5e7d38fe5b8115fe4860fe3e8a77d298cf67391b (diff)
Fix for fdo43460 Part XXXI getLength() to isEmpty()
Part XXXI Modules sd
Diffstat (limited to 'sd/source/ui/annotations')
-rw-r--r--sd/source/ui/annotations/annotationmanager.cxx2
-rw-r--r--sd/source/ui/annotations/annotationwindow.cxx4
2 files changed, 3 insertions, 3 deletions
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;