diff options
author | Marcel Metz <mmetz@adrian-broher.net> | 2011-12-21 20:00:03 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2011-12-21 20:14:52 +0100 |
commit | 713d69d96038fdd5479de076270c2186f95c2630 (patch) | |
tree | 57a41b8dec92b6a058131773f51aa1f2c905149c /sc/source/filter/xcl97 | |
parent | 13f8d799b9ad799e3e91a304b66ebd2151307fd5 (diff) |
fdo#38832 Replace ScChangeActionTable with std::map
Diffstat (limited to 'sc/source/filter/xcl97')
-rw-r--r-- | sc/source/filter/xcl97/XclExpChangeTrack.cxx | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/sc/source/filter/xcl97/XclExpChangeTrack.cxx b/sc/source/filter/xcl97/XclExpChangeTrack.cxx index 13c279f232da..e27ca39859d6 100644 --- a/sc/source/filter/xcl97/XclExpChangeTrack.cxx +++ b/sc/source/filter/xcl97/XclExpChangeTrack.cxx @@ -657,12 +657,14 @@ void XclExpChTrAction::AddDependentContents( const XclExpRoot& rRoot, ScChangeTrack& rChangeTrack ) { - ScChangeActionTable aActionTable; - rChangeTrack.GetDependents( (ScChangeAction*)(&rAction), aActionTable ); - for( const ScChangeAction* pDepAction = aActionTable.First(); pDepAction; pDepAction = aActionTable.Next() ) - if( pDepAction->GetType() == SC_CAT_CONTENT ) + ScChangeActionMap aActionMap; + ScChangeActionMap::iterator itChangeAction; + + rChangeTrack.GetDependents( (ScChangeAction*)(&rAction), aActionMap ); + for( itChangeAction = aActionMap.begin(); itChangeAction != aActionMap.end(); ++itChangeAction ) + if( itChangeAction->second->GetType() == SC_CAT_CONTENT ) SetAddAction( new XclExpChTrCellContent( - *((const ScChangeActionContent*) pDepAction), rRoot, rIdBuffer ) ); + *((const ScChangeActionContent*) itChangeAction->second), rRoot, rIdBuffer ) ); } void XclExpChTrAction::SetIndex( sal_uInt32& rIndex ) |