summaryrefslogtreecommitdiffstats
path: root/connectivity/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2010-12-05 12:01:19 +0000
committerCaolán McNamara <caolanm@redhat.com>2010-12-05 12:01:19 +0000
commit6f81fd62cf990970bc643f238887f361149830d7 (patch)
tree1ef405fd4cc3cb975c8d6468ad12de4346c80447 /connectivity/source
parentWaE, remove final warning, bracket up existing logic (diff)
downloadcore-6f81fd62cf990970bc643f238887f361149830d7.tar.gz
core-6f81fd62cf990970bc643f238887f361149830d7.zip
cppcheck: can reduce the scope of these variables
Diffstat (limited to 'connectivity/source')
-rw-r--r--connectivity/source/drivers/dbase/DTable.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/connectivity/source/drivers/dbase/DTable.cxx b/connectivity/source/drivers/dbase/DTable.cxx
index d03e6fddc9a9..4360937bdd34 100644
--- a/connectivity/source/drivers/dbase/DTable.cxx
+++ b/connectivity/source/drivers/dbase/DTable.cxx
@@ -1515,14 +1515,14 @@ BOOL ODbaseTable::InsertRow(OValueRefVector& rRow, BOOL bFlush,const Reference<X
// Gesamte neue Row uebernehmen:
// ... und am Ende als neuen Record hinzufuegen:
- UINT32 nTempPos = m_nFilePos,
- nFileSize = 0,
- nMemoFileSize = 0;
+ UINT32 nTempPos = m_nFilePos;
m_nFilePos = (ULONG)m_aHeader.db_anz + 1;
BOOL bInsertRow = UpdateBuffer( rRow, NULL, _xCols );
if ( bInsertRow )
{
+ UINT32 nFileSize = 0, nMemoFileSize = 0;
+
nFileSize = lcl_getFileSize(*m_pFileStream);
if (HasMemoFields() && m_pMemoStream)