[Libreoffice-commits] .: Branch 'fastbool' - svl/source

Michael Meeks mmeeks at kemper.freedesktop.org
Fri Oct 8 06:31:04 PDT 2010


 svl/source/items/itempool.cxx |    4 ++--
 svl/source/items/poolio.cxx   |    6 ++++--
 2 files changed, 6 insertions(+), 4 deletions(-)

New commits:
commit 657e29744d9f0750d6326502c903fbb05c292d74
Author: Michael Meeks <michael.meeks at novell.com>
Date:   Fri Oct 8 13:59:57 2010 +0100

    fix horrible use of FASTBOOL as a loop iterator

diff --git a/svl/source/items/itempool.cxx b/svl/source/items/itempool.cxx
index 0e074f6..760f955 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 bc1b99a..c306aaf 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)


More information about the Libreoffice-commits mailing list