summaryrefslogtreecommitdiffstats
path: root/sw/source/ui/vba/vbatemplate.cxx
diff options
context:
space:
mode:
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, ' ');
}