diff options
author | Akash Shetye <shetyeakash@gmail.com> | 2013-08-02 00:46:04 +0530 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-08-05 14:30:26 -0400 |
commit | 1a86564bd9a9cc28e429bb7a7657eea89ed670e9 (patch) | |
tree | 70f4857f0f99da66f85bc870c643e01e087d3ca0 | |
parent | 9387d68fec054cbd74835fcf35f1dba915e2dc92 (diff) |
Minor tweak about using container.size
Change-Id: I0987646c007e5a94f7bf83398ef911a8fb9ec9d7
-rw-r--r-- | sc/source/filter/excel/xedbdata.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sc/source/filter/excel/xedbdata.cxx b/sc/source/filter/excel/xedbdata.cxx index 3a9509bbc538..a2e7c5ee7e5b 100644 --- a/sc/source/filter/excel/xedbdata.cxx +++ b/sc/source/filter/excel/xedbdata.cxx @@ -64,7 +64,6 @@ XclExpXmlDBDataColumns::XclExpXmlDBDataColumns( const XclExpRoot& rRoot, ScDBDat aRange.GetVars( anCol1, anRow1, anTab1, anCol2, anRow2, anTab2 ); anTotalCols = (anCol2 - anCol1) + 1; //addressing starts from 0 // Needs special handling for different tab ranges - //miCount = anTotalCols; OUString aColName = "Column"; for( int i = 1; i <= anTotalCols; i++ ) { @@ -112,7 +111,6 @@ void XclExpXmlDBDataTable::SaveXml( XclExpXmlStream& rStrm ) XclExpXmlDBDataTables::XclExpXmlDBDataTables( const XclExpRoot& rRoot ) : XclExpRoot( rRoot ) { - int nCount = 0; ScDBCollection* pDBCollection = rRoot.GetDoc().GetDBCollection(); if( pDBCollection ) { @@ -121,8 +119,7 @@ XclExpXmlDBDataTables::XclExpXmlDBDataTables( const XclExpRoot& rRoot ) ScDBCollection::NamedDBs::iterator itrEnd = aNamedDBs.end(); for(; itr!= itrEnd; ++itr) { - ++nCount; - maDBDataTableContainer.push_back( new XclExpXmlDBDataTable( rRoot, *itr, nCount ) ); + maDBDataTableContainer.push_back( new XclExpXmlDBDataTable( rRoot, *itr, (maDBDataTableContainer.size() + 1) ) );// Tables are ID'ed 1 - based } } } |