summaryrefslogtreecommitdiff
path: root/svx/source/svdraw/svdundo.cxx
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2013-09-04 12:41:12 +0200
committerThomas Arnhold <thomas@arnhold.org>2013-09-05 09:38:39 +0200
commit8664e88bc2006d6bcf477f7efafc0308b75a77d7 (patch)
tree293280ed72cd1483411cffd08ee0468a4622d3b1 /svx/source/svdraw/svdundo.cxx
parent661e6cf497b8a83543ff10b21a01f3590d1bf504 (diff)
XubString to OUString
And simplify: SdrMarkView::ImpTakeDescriptionStr SdrUndoObj::GetDescriptionStringForObject ImpTakeDescriptionStr checks for %1 occurence first, this seems to me like an optimization. So I left it in. Change-Id: I2d0ecfdf2b83a9a535bd893578837e549dd691c1
Diffstat (limited to 'svx/source/svdraw/svdundo.cxx')
-rw-r--r--svx/source/svdraw/svdundo.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/svx/source/svdraw/svdundo.cxx b/svx/source/svdraw/svdundo.cxx
index df7b1e6ad6f8..fcdf5f09546d 100644
--- a/svx/source/svdraw/svdundo.cxx
+++ b/svx/source/svdraw/svdundo.cxx
@@ -1315,10 +1315,7 @@ OUString SdrUndoObjStrAttr::GetComment() const
{
case OBJ_NAME:
ImpTakeDescriptionStr( STR_UndoObjName, aStr );
- aStr += " ";
- aStr += "\'";
- aStr += msNewStr;
- aStr += "\'";
+ aStr += " '" + msNewStr + "'";
break;
case OBJ_TITLE:
ImpTakeDescriptionStr( STR_UndoObjTitle, aStr );