Date: prev next · Thread: first prev next last
2010 Archives by date, by thread · List index


Hi Norbert,

On Wed, 2010-10-06 at 03:03 -0500, Norbert Thiebaud wrote:
The patches are attached to Bug 30642
https://bugs.freedesktop.org/show_bug.cgi?id=30642

        Soo - I did some more spot review of the patches, and I liked what I
saw :-) things like this:

-    sal_uInt16 nColor = 0, nColCount = 16;
+    sal_uInt16 nColor = 0;
 
     static ColorData aColAry[] = {
.. 
-    while ( !bFound && nColor < nColCount )
+    while ( nColor < sizeof(aColAry)/sizeof(ColorData) &&
+            aColAry[nColor] != nColData )

        Are great cleanups in passing :-) - though they remind me of the need
for a SAL_N_ELEMENTS macro [ which I just added ], and a new
super-EasyHack to add to the wiki.

        The problem we saw in calc was down to this wonderfully unclear use of
FASTBOOL as a loop counter; this patch fixed it:

        // 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;

All FASTBOOL are converted into bool, except a couple of API that are
left as int

        I saw you also fixed a few APIs that returned int instead of bool to
use bool instead: nice work.

        Phew - well, the binfilter still builds nicely for me - so I've pushed
it. Down to (mostly) three boolean types :-)

        Great work here,

        ATB,

                Michael.

-- 
 michael.meeks@novell.com  <><, Pseudo Engineer, itinerant idiot


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.