summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2018-12-02 00:59:58 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2018-12-02 05:31:10 +0100
commit1f2d3b3f09d16033dae1f99f7739564a5f4c5482 (patch)
tree292145abe33a2bac69d67fdd67cfc7a8527f6024 /dbaccess
parenta9b13f2b7f0d2ab8bcf25a3110a06ababb4573f6 (diff)
tdf#120703 PVS: V560 A part of conditional expression is always true/false
Change-Id: Ia9c496ec93bedb13764969bf21c3f21d84caacef Reviewed-on: https://gerrit.libreoffice.org/64413 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/ui/querydesign/querycontroller.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/dbaccess/source/ui/querydesign/querycontroller.cxx b/dbaccess/source/ui/querydesign/querycontroller.cxx
index b47c8727bf3e..9a42963ffdfa 100644
--- a/dbaccess/source/ui/querydesign/querycontroller.cxx
+++ b/dbaccess/source/ui/querydesign/querycontroller.cxx
@@ -1200,7 +1200,7 @@ bool OQueryController::askForNewName(const Reference<XNameAccess>& _xElements, b
if(bNew)
{
OUString aDefaultName;
- if ( ( _bSaveAs && !bNew ) || ( bNew && !m_sName.isEmpty() ) )
+ if (!m_sName.isEmpty())
aDefaultName = m_sName;
else
{