diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-06-11 13:15:18 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-06-11 14:46:46 +0100 |
commit | 8f5629fd5aafc85e509a4160a11a285b0a66e7c0 (patch) | |
tree | 143883c85467b5ce9f5c665338e0f8a25067a0cd /sw/source/ui/vba/vbatemplate.cxx | |
parent | callcatcher: update unused code (diff) | |
download | core-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.cxx | 8 |
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, ' '); } |