[Libreoffice-commits] .: sd/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Thu Jan 3 09:35:26 PST 2013


 sd/source/ui/annotations/annotationmanager.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit ca8281721366b190be186b0649ce48eb1d61854d
Author: Matteo Casalin <matteo.casalin at gmx.com>
Date:   Thu Jan 3 16:22:44 2013 +0100

    Avoid unnecessary operations on an OUString
    
    Change-Id: I1820711664a6aa18587e1e4a3d74a8e4cbfcc07e
    Reviewed-on: https://gerrit.libreoffice.org/1537
    Reviewed-by: Luboš Luňák <l.lunak at suse.cz>
    Tested-by: Luboš Luňák <l.lunak at suse.cz>

diff --git a/sd/source/ui/annotations/annotationmanager.cxx b/sd/source/ui/annotations/annotationmanager.cxx
index 3ddcd33..2fc9492 100644
--- a/sd/source/ui/annotations/annotationmanager.cxx
+++ b/sd/source/ui/annotations/annotationmanager.cxx
@@ -160,11 +160,11 @@ OUString getAnnotationDateTimeString( const Reference< XAnnotation >& xAnnotatio
         Date aSysDate( Date::SYSTEM );
         Date aDate = Date( aDateTime.Day, aDateTime.Month, aDateTime.Year );
         if (aDate==aSysDate)
-            sRet = sRet + String(SdResId(STR_ANNOTATION_TODAY));
+            sRet = SdResId(STR_ANNOTATION_TODAY);
         else if (aDate == Date(aSysDate-1))
-            sRet = sRet + String(SdResId(STR_ANNOTATION_YESTERDAY));
+            sRet = SdResId(STR_ANNOTATION_YESTERDAY);
         else if (aDate.IsValidAndGregorian() )
-            sRet = sRet + rLocalData.getDate(aDate);
+            sRet = rLocalData.getDate(aDate);
 
         Time aTime( aDateTime.Hours, aDateTime.Minutes, aDateTime.Seconds, aDateTime.HundredthSeconds );
         if(aTime.GetTime() != 0)


More information about the Libreoffice-commits mailing list