diff options
author | Michael Meeks <michael.meeks@novell.com> | 2010-10-08 13:59:57 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@novell.com> | 2010-10-08 14:28:52 +0100 |
commit | e2dfcd0ba1fee74ada2f7d03fc5845ce63eeb935 (patch) | |
tree | 4a02a09939c3421d8e4a91b806511ad256714df7 | |
parent | 9df316152981544e0b693696dd8140127d28d5a5 (diff) |
fix horrible use of FASTBOOL as a loop iterator
-rw-r--r-- | svl/source/items/itempool.cxx | 4 | ||||
-rw-r--r-- | svl/source/items/poolio.cxx | 6 |
2 files changed, 6 insertions, 4 deletions
diff --git a/svl/source/items/itempool.cxx b/svl/source/items/itempool.cxx index 800562832b06..3c721f0aa4d4 100644 --- a/svl/source/items/itempool.cxx +++ b/svl/source/items/itempool.cxx @@ -187,7 +187,7 @@ SfxItemPool::SfxItemPool pImp->nInitRefCount = 1; pImp->nVerStart = nStart; pImp->nVerEnd = nEnd; - pImp->bInSetItem = FALSE; + pImp->bInSetItem = false; pImp->nStoringStart = nStartWhich; pImp->nStoringEnd = nEndWhich; @@ -246,7 +246,7 @@ SfxItemPool::SfxItemPool pImp->nInitRefCount = 1; pImp->nVerStart = rPool.pImp->nVerStart; pImp->nVerEnd = rPool.pImp->nVerEnd; - pImp->bInSetItem = FALSE; + pImp->bInSetItem = false; pImp->nStoringStart = nStart; pImp->nStoringEnd = nEnd; diff --git a/svl/source/items/poolio.cxx b/svl/source/items/poolio.cxx index 58a67a863182..513ab49fe348 100644 --- a/svl/source/items/poolio.cxx +++ b/svl/source/items/poolio.cxx @@ -202,8 +202,10 @@ SvStream &SfxItemPool::Store(SvStream &rStream) const SfxMultiMixRecordWriter aWhichIdsRec( &rStream, SFX_ITEMPOOL_REC_WHICHIDS, 0 ); // erst Atomaren-Items und dann die Sets schreiben (wichtig beim Laden) - for ( pImp->bInSetItem = FALSE; pImp->bInSetItem <= TRUE && !rStream.GetError(); ++pImp->bInSetItem ) + for (int ft = 0 ; ft < 2 && !rStream.GetError(); ft++) { + pImp->bInSetItem = ft != 0; + SfxPoolItemArray_Impl **pArr = pImp->ppPoolItems; SfxPoolItem **ppDefItem = ppStaticDefaults; const USHORT nSize = GetSize_Impl(); @@ -274,7 +276,7 @@ SvStream &SfxItemPool::Store(SvStream &rStream) const } } - pImp->bInSetItem = FALSE; + pImp->bInSetItem = false; } // die gesetzten Defaults speichern (Pool-Defaults) |