[PATCH] Avoid unnecessary operations on an OUString
Matteo Casalin (via Code Review)
gerrit at gerrit.libreoffice.org
Thu Jan 3 07:23:48 PST 2013
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 at gmx.com>
More information about the LibreOffice
mailing list