summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-09-13 20:46:48 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-09-13 20:46:48 +0100
commit168ad25711c0bd6e3a025b083312e3ed2d237933 (patch)
tree86e5988431aeec28b7674a48d79af6685fa990aa
parent5d26ad5a0e446bcda8c8b7dadbe0c567c1dcc082 (diff)
cppcheck: unreadVariable
Change-Id: Ia611c9a1119af65688031d16ff322f1bde43297b
-rw-r--r--connectivity/source/drivers/dbase/DTable.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/connectivity/source/drivers/dbase/DTable.cxx b/connectivity/source/drivers/dbase/DTable.cxx
index 12b2610e705a..6fd3ba78d96d 100644
--- a/connectivity/source/drivers/dbase/DTable.cxx
+++ b/connectivity/source/drivers/dbase/DTable.cxx
@@ -2474,7 +2474,7 @@ void ODbaseTable::dropColumn(sal_Int32 _nPos)
// construct the new table
if(!pNewTable->CreateImpl())
{
- xHold = pNewTable = NULL;
+ xHold.clear();
const OUString sError( getConnection()->getResources().getResourceStringWithSubstitution(
STR_COLUMN_NOT_DROP,
"$position$", OUString::number(_nPos)
@@ -2489,7 +2489,7 @@ void ODbaseTable::dropColumn(sal_Int32 _nPos)
pNewTable->renameImpl(m_Name);
// release the temp file
- xHold = pNewTable = NULL;
+ xHold.clear();
FileClose();
construct();