[Libreoffice] [PUSHED] Re: [PATCH 9/9] binfilter sw3io warning fixes

Pierre-André Jacquod pjacquod at alumni.ethz.ch
Fri Nov 26 09:10:49 PST 2010

First thanks for reviewing, catching my errors and correcting. I have
learned a lot. Next time I do so many errors, please reject and I will
correct it myself.

Michael, I will wait making less errors in changes before requesting an
account, if you don't mind.

Just a question for:
> Err, you sort of changed the logic there. That doesn't look quite right.
> OutAttrSet went from getting called always to only getting called when
> pExportInfo is set. I've fixed this up now as well.

I don't understand my error: I wanted to keep the logic with structure
changes, going from:

var -> here waring not initialized
if (pexportinfo)
    stuff 1

OutAttrSet      -----> the one you mentionned

if (pexportinfo)
   stuff 2

to the new structure having (at least I though) the same overall logic
but written slightly differently:

if (pexportinfo)
   stuff 1
   stuff 2

I though, this would be better, solving the uninitialized warning,
initializing only if needed and having only one IF evaluation. The
OutAttrSet seems me to be executed in all case one and only once, as before.
Is there a logic error here?
Or did the patch 0009 (the concerned part attached here) something else?

Thanks helping me to improve.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: extract_0009.patch
Type: text/x-patch
Size: 2990 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20101126/e555c764/attachment.bin>

More information about the LibreOffice mailing list