diff options
author | Sven Jacobi <sj@openoffice.org> | 2001-09-21 07:53:27 +0000 |
---|---|---|
committer | Sven Jacobi <sj@openoffice.org> | 2001-09-21 07:53:27 +0000 |
commit | 2892fd498c7f7a81489956a9d84944572f1f55de (patch) | |
tree | 0eb1c5b058b946b84d8a724dafd5a3dcb68426cb /svx/source/svdraw/svdoattr.cxx | |
parent | 08ec80c7af7f4fae1d2593ba1ed404d53bd5b18e (diff) |
#92313# fixed performance problem in method SetModel (especially with 3d objects)
Diffstat (limited to 'svx/source/svdraw/svdoattr.cxx')
-rw-r--r-- | svx/source/svdraw/svdoattr.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/svx/source/svdraw/svdoattr.cxx b/svx/source/svdraw/svdoattr.cxx index bf02042fc13f..296967b86290 100644 --- a/svx/source/svdraw/svdoattr.cxx +++ b/svx/source/svdraw/svdoattr.cxx @@ -2,9 +2,9 @@ * * $RCSfile: svdoattr.cxx,v $ * - * $Revision: 1.28 $ + * $Revision: 1.29 $ * - * last change: $Author: aw $ $Date: 2001-08-29 14:05:14 $ + * last change: $Author: sj $ $Date: 2001-09-21 08:53:27 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -742,18 +742,18 @@ void SdrAttrObj::SetModel(SdrModel* pNewModel) EE_ITEMS_START,EE_ITEMS_END, 0,0); - SfxWhichIter aIter( GetItemSet() ); + const SfxItemSet& rItemSet = GetItemSet(); + + SfxWhichIter aIter( rItemSet ); sal_uInt16 nWhich( aIter.FirstWhich() ); const SfxPoolItem* pItem = NULL; while( nWhich ) { - if( SFX_ITEM_SET == GetItemSet().GetItemState(nWhich, FALSE, &pItem) ) + if( SFX_ITEM_SET == rItemSet.GetItemState( nWhich, FALSE, &pItem ) ) aSet.Put( *pItem->Clone() ); - nWhich = aIter.NextWhich(); } - // Set the StyleSheet NbcSetStyleSheet(pDefSS, TRUE); |