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

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Sun Nov 11 08:18:22 UTC 2018


 dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit 770cfd0107d0926eeaa1899a5854df1fe8c7a032
Author:     Zdibák Zoltán <zdibakzoltan at gmail.com>
AuthorDate: Sat Nov 10 23:17:03 2018 +0100
Commit:     Julien Nabet <serval2412 at yahoo.fr>
CommitDate: Sun Nov 11 09:18:01 2018 +0100

    cppCheck redundantAssignment pParseNode
    
    Change-Id: I0e5e2d607bddd1f73fc8c256169a2fbe070f6448
    Reviewed-on: https://gerrit.libreoffice.org/63256
    Tested-by: Jenkins
    Reviewed-by: Julien Nabet <serval2412 at yahoo.fr>

diff --git a/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx b/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx
index 8d2fa256bbb1..fa46b86c3a4d 100644
--- a/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx
+++ b/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx
@@ -662,9 +662,8 @@ bool OSelectionBrowseBox::saveField(OUString& _sFieldName ,OTableFieldDescRef co
     ::connectivity::OSQLParser& rParser( rController.getParser() );
     {
         // automatically add parentheses around subqueries
-        OSQLParseNode *pParseNode = nullptr;
         OUString devnull;
-        pParseNode = rParser.parseTree( devnull, _sFieldName, true );
+        OSQLParseNode *pParseNode = rParser.parseTree( devnull, _sFieldName, true );
         if (pParseNode == nullptr)
             pParseNode = rParser.parseTree( devnull, _sFieldName );
         if (pParseNode != nullptr && SQL_ISRULE(pParseNode, select_statement))


More information about the Libreoffice-commits mailing list