diff options
author | Guillaume Poussel <gpoussel@gmail.com> | 2011-01-06 20:29:25 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-01-07 11:06:02 +0000 |
commit | 865bef974dbe82eda780bb28516d83982ae07ed8 (patch) | |
tree | 295b2ecd32008baab0b82760172a04449b76a505 /dbaccess/source/ui/misc/RowSetDrop.cxx | |
parent | 1fe3737d3d16f228a3668214d5b09ddc71c6e4a5 (diff) |
cppcheck cleanliness
Diffstat (limited to 'dbaccess/source/ui/misc/RowSetDrop.cxx')
-rw-r--r-- | dbaccess/source/ui/misc/RowSetDrop.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/dbaccess/source/ui/misc/RowSetDrop.cxx b/dbaccess/source/ui/misc/RowSetDrop.cxx index cb22ad23c43a..70b127cc2ec6 100644 --- a/dbaccess/source/ui/misc/RowSetDrop.cxx +++ b/dbaccess/source/ui/misc/RowSetDrop.cxx @@ -1,3 +1,4 @@ + /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * @@ -119,8 +120,6 @@ BOOL ORowSetImportExport::Read() if(::std::find_if(m_aColumnMapping.begin(),m_aColumnMapping.end(), ::std::bind2nd(::std::greater<sal_Int32>(),0)) == m_aColumnMapping.end()) return FALSE; - sal_Int32 nCurrentRow = 0; - sal_Int32 nRowFilterIndex = 0; sal_Bool bContinue = sal_True; if(m_aSelection.getLength()) { @@ -138,6 +137,8 @@ BOOL ORowSetImportExport::Read() { Reference<XPropertySet> xProp(m_xResultSet,UNO_QUERY); sal_Int32 nRowCount = 0; + sal_Int32 nCurrentRow = 0; + sal_Int32 nRowFilterIndex = 0; if ( xProp.is() && xProp->getPropertySetInfo()->hasPropertyByName(PROPERTY_ISROWCOUNTFINAL) ) { sal_Bool bFinal = sal_False; |