[Libreoffice-commits] core.git: connectivity/source
Caolán McNamara
caolanm at redhat.com
Sun Sep 13 12:47:55 PDT 2015
connectivity/source/drivers/dbase/DTable.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 168ad25711c0bd6e3a025b083312e3ed2d237933
Author: Caolán McNamara <caolanm at redhat.com>
Date: Sun Sep 13 20:46:48 2015 +0100
cppcheck: unreadVariable
Change-Id: Ia611c9a1119af65688031d16ff322f1bde43297b
diff --git a/connectivity/source/drivers/dbase/DTable.cxx b/connectivity/source/drivers/dbase/DTable.cxx
index 12b2610..6fd3ba7 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();
More information about the Libreoffice-commits
mailing list