summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-06-06 14:35:49 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-06-06 14:38:42 +0100
commite2cd6a77ea0e8a1abd8f4d3570ba4f5fdefff3e1 (patch)
treea345e3aae24a7f41209b40e370aa89787686979e /basic
parent5662854bc29acb45c1c449c05d1e92f96a4b335a (diff)
drop String::Reverse
Change-Id: Ie06635dc1f242241d48f9d6de4f592898e605bf2
Diffstat (limited to 'basic')
-rw-r--r--basic/source/runtime/methods1.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/basic/source/runtime/methods1.cxx b/basic/source/runtime/methods1.cxx
index 4e5788ad45dc..2195a177c52e 100644
--- a/basic/source/runtime/methods1.cxx
+++ b/basic/source/runtime/methods1.cxx
@@ -52,6 +52,7 @@
#include <comphelper/processfactory.hxx>
+#include <comphelper/string.hxx>
#include <com/sun/star/uno/Sequence.hxx>
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
@@ -3122,8 +3123,7 @@ RTLFUNC(StrReverse)
return;
}
- String aStr = pSbxVariable->GetString();
- aStr.Reverse();
+ rtl::OUString aStr = comphelper::string::reverseString(pSbxVariable->GetString());
rPar.Get(0)->PutString( aStr );
}