summaryrefslogtreecommitdiffstats
path: root/sw/source/ui/vba/vbatemplate.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-06-11 13:15:18 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-06-11 14:46:46 +0100
commit8f5629fd5aafc85e509a4160a11a285b0a66e7c0 (patch)
tree143883c85467b5ce9f5c665338e0f8a25067a0cd /sw/source/ui/vba/vbatemplate.cxx
parentcallcatcher: update unused code (diff)
downloadcore-8f5629fd5aafc85e509a4160a11a285b0a66e7c0.tar.gz
core-8f5629fd5aafc85e509a4160a11a285b0a66e7c0.zip
remove EraseLeadingChars and EraseTrailingChars
Change-Id: Ib9797fe97cd008cc6508ce8cec47dc5373416892
Diffstat (limited to 'sw/source/ui/vba/vbatemplate.cxx')
-rw-r--r--sw/source/ui/vba/vbatemplate.cxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/sw/source/ui/vba/vbatemplate.cxx b/sw/source/ui/vba/vbatemplate.cxx
index 2071ebdd223a..0ce1817911f3 100644
--- a/sw/source/ui/vba/vbatemplate.cxx
+++ b/sw/source/ui/vba/vbatemplate.cxx
@@ -29,10 +29,10 @@
#include <vbahelper/vbahelper.hxx>
#include "wordvbahelper.hxx"
#include "vbaautotextentry.hxx"
-#include <comphelper/processfactory.hxx>
#include <com/sun/star/text/XAutoTextContainer.hpp>
-#include <tools/urlobj.hxx>
+#include <comphelper/processfactory.hxx>
#include <comphelper/string.hxx>
+#include <tools/urlobj.hxx>
#include <osl/file.hxx>
using namespace ::ooo::vba;
@@ -51,9 +51,7 @@ String lcl_CheckGroupName( const String& rGroupName )
sRet += cChar;
}
}
- sRet.EraseLeadingChars();
- sRet.EraseTrailingChars();
- return sRet;
+ return comphelper::string::strip(sRet, ' ');
}