diff options
author | Zdibák Zoltán <zdibakzoltan@gmail.com> | 2018-11-10 23:17:03 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2018-11-11 09:18:01 +0100 |
commit | 770cfd0107d0926eeaa1899a5854df1fe8c7a032 (patch) | |
tree | bfc99294f91d50a251b262a0f3bffe25001f3405 /dbaccess/source | |
parent | c62f75f0c16ff69231b9c78d756f2c9a7d06ce57 (diff) |
cppCheck redundantAssignment pParseNode
Change-Id: I0e5e2d607bddd1f73fc8c256169a2fbe070f6448
Reviewed-on: https://gerrit.libreoffice.org/63256
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'dbaccess/source')
-rw-r--r-- | dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
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)) |