diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2013-11-05 14:55:21 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2013-11-06 20:40:23 -0500 |
commit | 1d996cee76a50a5a6aa74e21eec89e03a05772e7 (patch) | |
tree | 3f6f1d259bd67217b3365e12fc0e9232d77eee9c /sc/source/filter/oox/formulabuffer.cxx | |
parent | 7045802f27f3efe74b4ed9146d33abe253df043a (diff) |
Keep the integer type in sync and remove unused data members.
Change-Id: Iaaf1ebddd3b946b3211952729d41b01f0967f374
Diffstat (limited to 'sc/source/filter/oox/formulabuffer.cxx')
-rw-r--r-- | sc/source/filter/oox/formulabuffer.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sc/source/filter/oox/formulabuffer.cxx b/sc/source/filter/oox/formulabuffer.cxx index 68e1d2ec14ac..04be13985219 100644 --- a/sc/source/filter/oox/formulabuffer.cxx +++ b/sc/source/filter/oox/formulabuffer.cxx @@ -54,13 +54,11 @@ void FormulaBuffer::finalizeImport() ISegmentProgressBarRef xFormulaBar = getProgressBar().createSegment( getProgressBar().getFreeLength() ); ScDocument& rDoc = getScDocument(); - Reference< XIndexAccess > xSheets( getDocument()->getSheets(), UNO_QUERY_THROW ); rDoc.SetAutoNameCache( new ScAutoNameCache( &rDoc ) ); - for ( sal_Int32 nTab = 0, nElem = xSheets->getCount(); nTab < nElem; ++nTab ) + for (SCTAB nTab = 0, nElem = rDoc.GetTableCount(); nTab < nElem; ++nTab) { double fPosition = static_cast< double> (nTab + 1) /static_cast<double>(nElem); xFormulaBar->setPosition( fPosition ); - mxCurrSheet = getSheetFromDoc( nTab ); applySharedFormulas(nTab); @@ -122,7 +120,7 @@ void FormulaBuffer::applyCellFormulaValues( const std::vector< ValueAddressPair } } -void FormulaBuffer::applySharedFormulas( sal_Int32 nTab ) +void FormulaBuffer::applySharedFormulas( SCTAB nTab ) { SheetToFormulaEntryMap::const_iterator itShared = maSharedFormulas.find(nTab); if (itShared == maSharedFormulas.end()) |