diff options
Diffstat (limited to 'dbaccess/source/ui/querydesign')
-rw-r--r-- | dbaccess/source/ui/querydesign/QueryDesignView.cxx | 5 | ||||
-rw-r--r-- | dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx | 3 |
2 files changed, 3 insertions, 5 deletions
diff --git a/dbaccess/source/ui/querydesign/QueryDesignView.cxx b/dbaccess/source/ui/querydesign/QueryDesignView.cxx index 6b91252feb56..902bd0aec8bb 100644 --- a/dbaccess/source/ui/querydesign/QueryDesignView.cxx +++ b/dbaccess/source/ui/querydesign/QueryDesignView.cxx @@ -957,8 +957,7 @@ namespace } { - String sTemp(aWorkStr); - sTemp.EraseTrailingChars( ',' ); + String sTemp(comphelper::string::stripEnd(aWorkStr, ',')); aWorkStr = sTemp; } @@ -2260,7 +2259,7 @@ namespace { aInfo->SetFunctionType(nFunctionType|FKT_AGGREGATE); String aCol(aColumns); - aInfo->SetFunction(aCol.GetToken(0,'(').EraseTrailingChars(' ')); + aInfo->SetFunction(comphelper::string::stripEnd(aCol.GetToken(0,'('), ' ')); } else aInfo->SetFunctionType(nFunctionType|FKT_OTHER); diff --git a/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx b/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx index 39ed8c602eed..ae2078cc6957 100644 --- a/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx +++ b/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx @@ -1098,9 +1098,8 @@ sal_Bool OSelectionBrowseBox::SaveModified() break; sal_uInt16 nIdx = sal_uInt16(nRow - BROW_CRIT1_ROW); - String aText = m_pTextCell->GetText(); + String aText = comphelper::string::stripStart(m_pTextCell->GetText(), ' '); - aText.EraseLeadingChars(); ::rtl::OUString aCrit; if(aText.Len()) { |