[Libreoffice-commits] core.git: dbaccess/source

Noel Grandin (via logerrit) logerrit at kemper.freedesktop.org
Thu Apr 22 10:23:34 UTC 2021


 dbaccess/source/ui/querydesign/QueryDesignView.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 21aded1828b1a401a32b0b960f035370843f3771
Author:     Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Thu Apr 22 09:05:30 2021 +0200
Commit:     Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Thu Apr 22 12:22:46 2021 +0200

    simplify some string manipulation
    
    Change-Id: Id5dae7b669a9cc61cb5e9d57a161e9bb809a93c1
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114468
    Tested-by: Noel Grandin <noel.grandin at collabora.co.uk>
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>

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 ");


More information about the Libreoffice-commits mailing list