diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2013-09-04 12:41:12 +0200 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2013-09-05 09:38:39 +0200 |
commit | 8664e88bc2006d6bcf477f7efafc0308b75a77d7 (patch) | |
tree | 293280ed72cd1483411cffd08ee0468a4622d3b1 /svx/source/svdraw/svdmrkv.cxx | |
parent | 661e6cf497b8a83543ff10b21a01f3590d1bf504 (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/svdmrkv.cxx')
-rw-r--r-- | svx/source/svdraw/svdmrkv.cxx | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/svx/source/svdraw/svdmrkv.cxx b/svx/source/svdraw/svdmrkv.cxx index 07e35491db4c..91f85baf3c83 100644 --- a/svx/source/svdraw/svdmrkv.cxx +++ b/svx/source/svdraw/svdmrkv.cxx @@ -2015,12 +2015,7 @@ void SdrMarkView::ImpTakeDescriptionStr(sal_uInt16 nStrCacheID, OUString& rStr, } } - nPos = rStr.indexOf("%2"); - - if(nPos != -1) - { - rStr = rStr.replaceAt(nPos, 2, OUString::number( nVal )); - } + rStr = rStr.replaceFirst("%2", OUString::number( nVal )); } //////////////////////////////////////////////////////////////////////////////////////////////////// |