summaryrefslogtreecommitdiff
path: root/svx/source/fmcomp
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/fmcomp')
-rw-r--r--svx/source/fmcomp/fmgridcl.cxx8
-rw-r--r--svx/source/fmcomp/gridcell.cxx4
2 files changed, 6 insertions, 6 deletions
diff --git a/svx/source/fmcomp/fmgridcl.cxx b/svx/source/fmcomp/fmgridcl.cxx
index c4119fd1fbc2..8bc620b669de 100644
--- a/svx/source/fmcomp/fmgridcl.cxx
+++ b/svx/source/fmcomp/fmgridcl.cxx
@@ -68,6 +68,7 @@
#include <comphelper/numbers.hxx>
#include <comphelper/processfactory.hxx>
#include <comphelper/property.hxx>
+#include <comphelper/string.hxx>
#include <connectivity/dbtools.hxx>
#include <sfx2/dispatch.hxx>
#include <sfx2/viewfrm.hxx>
@@ -574,10 +575,9 @@ IMPL_LINK( FmGridHeader, OnAsyncExecuteDrop, void*, /*NOTINTERESTEDIN*/ )
for ( size_t i=0; i<2; ++i )
{
- sPurePostfix = aPostfix[i];
- sPurePostfix.EraseLeadingChars(' ');
- sPurePostfix.EraseLeadingChars('(');
- sPurePostfix.EraseTrailingChars(')');
+ sPurePostfix = comphelper::string::stripStart(aPostfix[i], ' ');
+ sPurePostfix = comphelper::string::stripStart(sPurePostfix, '(');
+ sPurePostfix = comphelper::string::stripEnd(sPurePostfix, ')');
sRealName = sFieldName;
sRealName += '_';
sRealName += sPurePostfix;
diff --git a/svx/source/fmcomp/gridcell.cxx b/svx/source/fmcomp/gridcell.cxx
index bd3bf23abbdd..a015f6cce669 100644
--- a/svx/source/fmcomp/gridcell.cxx
+++ b/svx/source/fmcomp/gridcell.cxx
@@ -57,6 +57,7 @@
#include <comphelper/numbers.hxx>
#include <comphelper/property.hxx>
#include <comphelper/servicehelper.hxx>
+#include <comphelper/string.hxx>
#include <connectivity/formattedcolumnvalue.hxx>
#include <cppuhelper/typeprovider.hxx>
#include <i18npool/lang.h>
@@ -2976,8 +2977,7 @@ sal_Bool DbFilterField::commitControl()
if (m_aText != aText)
{
// check the text with the SQL-Parser
- String aNewText(aText);
- aNewText.EraseTrailingChars();
+ String aNewText(comphelper::string::stripEnd(aText, ' '));
if (aNewText.Len() != 0)
{
::rtl::OUString aErrorMsg;