summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-10-20 19:55:47 +0100
committerCaolán McNamara <caolanm@redhat.com>2018-10-21 20:15:17 +0200
commitacd9e3f5dac9804286eb498cb9665ba333fc6583 (patch)
tree5c25146ca5d5cda1215b94fc3d452123441c0354
parentc60e737832fe5f9b4841ba163e22c532f0abe6f4 (diff)
pvs-studio: Expression 'pException' is always false.
Change-Id: Id81e01bd8a082e6bb4eda2f9e8bae1818389941f Reviewed-on: https://gerrit.libreoffice.org/62102 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--dbaccess/source/filter/hsqldb/hsqlimport.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/dbaccess/source/filter/hsqldb/hsqlimport.cxx b/dbaccess/source/filter/hsqldb/hsqlimport.cxx
index 2a098476b62e..7a01045bfb37 100644
--- a/dbaccess/source/filter/hsqldb/hsqlimport.cxx
+++ b/dbaccess/source/filter/hsqldb/hsqlimport.cxx
@@ -305,9 +305,6 @@ void HsqlImporter::importHsqlDatabase()
}
catch (SQLException& ex)
{
- // chain errors and keep going
- if (pException)
- ex.NextException <<= *pException;
pException.reset(new SQLException{ std::move(ex) });
}
@@ -329,6 +326,7 @@ void HsqlImporter::importHsqlDatabase()
}
catch (SQLException& ex)
{
+ // chain errors and keep going
if (pException)
ex.NextException <<= *pException;
pException.reset(new SQLException{ std::move(ex) });
@@ -345,6 +343,7 @@ void HsqlImporter::importHsqlDatabase()
}
catch (SQLException& ex)
{
+ // chain errors and keep going
if (pException)
ex.NextException <<= *pException;
pException.reset(new SQLException{ std::move(ex) });
@@ -361,6 +360,7 @@ void HsqlImporter::importHsqlDatabase()
}
catch (SQLException& ex)
{
+ // chain errors and keep going
if (pException)
ex.NextException <<= *pException;
pException.reset(new SQLException{ std::move(ex) });