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


Hi Christina,

On Tue, 2011-05-17 at 21:14 +0200, Chr. Rossmanith wrote:
Find patch attached. Here is what I did:

        Looks lovely to me :-)

- changed a variables holding boolean values from int to bool
- used include-what-you-use and created new list of #includes
- introduced SAL_CALL

        Good stuff.

A question to SAL_CALL: The following command

find . -name "*.cxx"|xargs pcregrep -M 'WNT.*\n.*cdecl'

shows SAL_CALL candidates. But where in LO I can assume that it's fine 
to use SAL_CALL. Everywhere? E.g. autodoc/source/exes/adc_uni/main.cxx? 
Or for the first run only replace occurrences similar enough to the one 
above?

        I would say all instances of explicit __cdecl usage in our code are
unpleasant, unclear and broken - we should use SAL_CALL instead - no
point in scattering this #ifdef cruft all over the code when we don't
need to :-)

        I would use ./g grep __cdecl myself ... unless you want to just fix up
the above pattern first ? eg toolkit/source/awt/vclxtoolkit.cxx has just
the same thing.

        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.