summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-10-21 15:04:57 +0100
committerCaolán McNamara <caolanm@redhat.com>2018-10-22 12:43:56 +0200
commit78490b45c771a4c9632b324922f2c8e83f06153b (patch)
tree0e74de3a28bce5a7300f39aa36378d35eedc0afe /dbaccess
parent5c147fc5fe0e77838b8e9bebd4ff215a80946980 (diff)
pvs-studio: V668 no sense testing against null as memory was allocated by new
category V668 complete Change-Id: I986d4cb89a7c72d54d71ea01fc598a9958deee24 Reviewed-on: https://gerrit.libreoffice.org/62138 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/ui/misc/DExport.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/dbaccess/source/ui/misc/DExport.cxx b/dbaccess/source/ui/misc/DExport.cxx
index d5032b306f85..0fb7b3c47d04 100644
--- a/dbaccess/source/ui/misc/DExport.cxx
+++ b/dbaccess/source/ui/misc/DExport.cxx
@@ -673,8 +673,7 @@ void ODatabaseExport::CreateDefaultColumn(const OUString& _rColumnName)
bool ODatabaseExport::createRowSet()
{
m_pUpdateHelper.reset(new OParameterUpdateHelper(createPreparedStatment(m_xConnection->getMetaData(),m_xTable,m_vColumnPositions)));
-
- return m_pUpdateHelper != nullptr;
+ return true;
}
bool ODatabaseExport::executeWizard(const OUString& _rTableName, const Any& _aTextColor, const FontDescriptor& _rFont)