sd/source/ui/annotations/annotationmanager.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
New commits: commit ca8281721366b190be186b0649ce48eb1d61854d Author: Matteo Casalin <[email protected]> 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 <[email protected]> Tested-by: LuboÅ¡ LuÅák <[email protected]> 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)
_______________________________________________ Libreoffice-commits mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
