Date: prev next · Thread: first prev next last
2013 Archives by date, by thread · List index


Hi,

I have submitted a patch for review:

    https://gerrit.libreoffice.org/1537

To pull it, you can do:

    git pull ssh://gerrit.libreoffice.org:29418/core refs/changes/37/1537/1

Avoid unnecessary operations on an OUString

Change-Id: I1820711664a6aa18587e1e4a3d74a8e4cbfcc07e
---
M sd/source/ui/annotations/annotationmanager.cxx
1 file changed, 3 insertions(+), 3 deletions(-)



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 @@
         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)

-- 
To view, visit https://gerrit.libreoffice.org/1537
To unsubscribe, visit https://gerrit.libreoffice.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I1820711664a6aa18587e1e4a3d74a8e4cbfcc07e
Gerrit-PatchSet: 1
Gerrit-Project: core
Gerrit-Branch: master
Gerrit-Owner: Matteo Casalin <matteo.casalin@gmx.com>


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.