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


Hi Rene,

On Sat, 2010-10-16 at 19:10 +0200, René Kjellerup wrote:
I removed some commented OSL_TRACE statements... but were they really
needed still?

        Fine to loose them ;-)

        Sadly, I was wrong about SAL_N_ELEMENTs here; it is not safe. With a
generic array - ie. not one statically sized at compile time, we end up
with the wrong result:

        Foo *p = new Foo[128];

        SAL_N_ELEMENTS(p) will be sizeof(Foo *)/sizeof(Foo) - which not be what
we want; where:

        Baa p[128];
        SAL_N_ELEMENTS(p) is 128

        My mistake, should have highlighted that earlier, sorry.

        Anyhow - pushed the cleanups, translations etc.

        Thanks !

                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.