summaryrefslogtreecommitdiffstats
path: root/dbaccess/source/ui/dlg/queryfilter.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 /dbaccess/source/ui/dlg/queryfilter.cxx
parentcallcatcher: update unused code (diff)
downloadcore-8f5629fd5aafc85e509a4160a11a285b0a66e7c0.tar.gz
core-8f5629fd5aafc85e509a4160a11a285b0a66e7c0.zip
remove EraseLeadingChars and EraseTrailingChars
Change-Id: Ib9797fe97cd008cc6508ce8cec47dc5373416892
Diffstat (limited to 'dbaccess/source/ui/dlg/queryfilter.cxx')
-rw-r--r--dbaccess/source/ui/dlg/queryfilter.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/dbaccess/source/ui/dlg/queryfilter.cxx b/dbaccess/source/ui/dlg/queryfilter.cxx
index 9d481ac11d58..51bbed99513c 100644
--- a/dbaccess/source/ui/dlg/queryfilter.cxx
+++ b/dbaccess/source/ui/dlg/queryfilter.cxx
@@ -487,7 +487,7 @@ void DlgFilterCrit::SetLine( sal_uInt16 nIdx,const PropertyValue& _rItem,sal_Boo
_rItem.Value >>= aCondition;
String aStr = aCondition.getStr();
::Replace_SQL_PlaceHolder(aStr);
- aStr.EraseTrailingChars();
+ aStr = comphelper::string::stripEnd(aStr, ' ');
Reference< XPropertySet > xColumn = getColumn( _rItem.Name );
@@ -525,7 +525,7 @@ void DlgFilterCrit::SetLine( sal_uInt16 nIdx,const PropertyValue& _rItem,sal_Boo
aStr.Erase(0,11);
break;
}
- aStr.EraseLeadingChars();
+ aStr = comphelper::string::stripStart(aStr, ' ');
// to make sure that we only set first three
ListBox* pColumnListControl = NULL;