summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-04-22 09:05:30 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-04-22 12:22:46 +0200
commit21aded1828b1a401a32b0b960f035370843f3771 (patch)
treea0564e17629bc5e110ece6db1d50df18a7aa8721 /dbaccess
parentc5ea059a1def974d798a6218c5cc6cffcb3a00ab (diff)
simplify some string manipulation
Change-Id: Id5dae7b669a9cc61cb5e9d57a161e9bb809a93c1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114468 Tested-by: Noel Grandin <noel.grandin@collabora.co.uk> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/ui/querydesign/QueryDesignView.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/dbaccess/source/ui/querydesign/QueryDesignView.cxx b/dbaccess/source/ui/querydesign/QueryDesignView.cxx
index 66544b40264c..693c11be0fd7 100644
--- a/dbaccess/source/ui/querydesign/QueryDesignView.cxx
+++ b/dbaccess/source/ui/querydesign/QueryDesignView.cxx
@@ -2765,9 +2765,9 @@ OUString OQueryDesignView::getStatement()
OUString aTmp = "( " + aJoinCrit + " )";
if(!aCriteriaListStr.isEmpty())
{
- aTmp += C_AND + aCriteriaListStr.makeStringAndClear();
+ aTmp += C_AND;
}
- aCriteriaListStr = aTmp;
+ aCriteriaListStr.insert(0, aTmp);
}
// ----------------- construct statement ----------------------
OUStringBuffer aSqlCmd("SELECT ");