[Libreoffice-commits] .: connectivity/source
Caolán McNamara
caolan at kemper.freedesktop.org
Sun Dec 5 04:01:27 PST 2010
connectivity/source/drivers/dbase/DTable.cxx | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
New commits:
commit 379b949329c3b599f4ba7b0bfd7c4e951bac1ede
Author: Caolán McNamara <caolanm at redhat.com>
Date: Sun Dec 5 12:01:19 2010 +0000
cppcheck: can reduce the scope of these variables
diff --git a/connectivity/source/drivers/dbase/DTable.cxx b/connectivity/source/drivers/dbase/DTable.cxx
index b452c3f..88d5b9f 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)
More information about the Libreoffice-commits
mailing list