diff options
author | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2015-03-24 12:08:54 +0100 |
---|---|---|
committer | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2015-03-24 15:59:38 +0100 |
commit | 1e120b0bf6968b39f2a1e834489f021ebdb27e33 (patch) | |
tree | 4732642c795515a60e44ed14129a27759b5317e2 /sw/source/core/doc/docfmt.cxx | |
parent | 32caa37352d30b5e9fbf7a9113640bd098efb626 (diff) |
remove use of GetDepends to access clients
Change-Id: If607addea5042a2539cd8b03ee6dae9e7833b879
Diffstat (limited to 'sw/source/core/doc/docfmt.cxx')
-rw-r--r-- | sw/source/core/doc/docfmt.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/core/doc/docfmt.cxx b/sw/source/core/doc/docfmt.cxx index 8cec8bc11205..fd633bedc305 100644 --- a/sw/source/core/doc/docfmt.cxx +++ b/sw/source/core/doc/docfmt.cxx @@ -653,9 +653,9 @@ void SwDoc::SetDefault( const SfxItemSet& rSet ) } // remove the default formats from the object again - SwClient* pDep; - while( 0 != ( pDep = (SwClient*)aCallMod.GetDepends()) ) - aCallMod.Remove( pDep ); + SwIterator<SwClient, SwModify> aClientIter(aCallMod); + for(SwClient* pClient = aClientIter.First(); pClient; pClient = aClientIter.Next()) + aCallMod.Remove( pClient ); getIDocumentState().SetModified(); } |