diff options
author | Caolán McNamara <caolanm@redhat.com> | 2010-12-05 12:01:19 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2010-12-05 12:01:19 +0000 |
commit | 6f81fd62cf990970bc643f238887f361149830d7 (patch) | |
tree | 1ef405fd4cc3cb975c8d6468ad12de4346c80447 /connectivity/source | |
parent | WaE, remove final warning, bracket up existing logic (diff) | |
download | core-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.cxx | 6 |
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) |