From 6b170f3d0aa519c6fd4e3ee92421f5a87ab511e3 Mon Sep 17 00:00:00 2001 From: Ivan Timofeev Date: Wed, 28 Mar 2012 21:06:03 +0400 Subject: WaE: declaration of 'it' shadows a previous local --- sc/source/core/tool/chartpos.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sc') diff --git a/sc/source/core/tool/chartpos.cxx b/sc/source/core/tool/chartpos.cxx index 7ab9e43a264c..78ea6e7071ab 100644 --- a/sc/source/core/tool/chartpos.cxx +++ b/sc/source/core/tool/chartpos.cxx @@ -409,8 +409,7 @@ void ScChartPositioner::CreatePositionMap() sal_uLong nInsRow = (bNoGlue ? nNoGlueRow : nRow1); for ( nRow = nRow1; nRow <= nRow2; nRow++, nInsRow++ ) { - RowMap::const_iterator it = pCol->find( nInsRow ); - if ( it == pCol->end() ) + if ( pCol->find( nInsRow ) == pCol->end() ) { pCol->insert( RowMap::value_type( nInsRow, new ScAddress( nCol, nRow, nTab ) ) ); } -- cgit