summaryrefslogtreecommitdiff
path: root/svx/source/svdraw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-10-16 00:57:17 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-10-17 16:06:30 +0100
commit4a057fdc4ca967d22130ae323b2327e5679fecd5 (patch)
treeef25c23c63b69ded1f2018d9bcb32a584a7aad7f /svx/source/svdraw
parent3fa67908de71b0e463d0186754a8bc231ec1922d (diff)
XubString->OUString
Change-Id: Ie66f747242c7304a7ad9628fcc18c4315178eccb
Diffstat (limited to 'svx/source/svdraw')
-rw-r--r--svx/source/svdraw/ActionDescriptionProvider.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/svx/source/svdraw/ActionDescriptionProvider.cxx b/svx/source/svdraw/ActionDescriptionProvider.cxx
index 55441715ecfd..af0a1f293c9b 100644
--- a/svx/source/svdraw/ActionDescriptionProvider.cxx
+++ b/svx/source/svdraw/ActionDescriptionProvider.cxx
@@ -65,10 +65,8 @@
if(!nResID)
return rtl::OUString();
- XubString aStr(ImpGetResStr(nResID));
- XubString aName(rObjectName);
- aStr.SearchAndReplaceAscii("%1", aName);
- return rtl::OUString(aStr);
+ OUString aStr(ImpGetResStr(nResID));
+ return aStr.replaceAll("%1", rObjectName);
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */