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


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi

I stumbled on this piece of code in

registry/tools/regcompare.cxx

There must be a finesse in lines 326, 330, and so on that I missed
miserably...

Any advise welcome, or I will rip off the ternary operator.

Thanks

Olivier

static OString getFieldAccess(RTFieldAccess fieldAccess)
    318 {
    319     OString ret;
    320     if ( (fieldAccess & RT_ACCESS_INVALID) == RT_ACCESS_INVALID )
    321     {
    322         ret += OString("INVALID");
    323     }
    324     if ( (fieldAccess & RT_ACCESS_READONLY) == RT_ACCESS_READONLY )
    325     {
    326         ret += OString(ret.getLength() > 0 ? ",READONLY" :
"READONLY");
    327     }
    328     if ( (fieldAccess & RT_ACCESS_OPTIONAL) == RT_ACCESS_OPTIONAL )
    329     {
    330         ret += OString(ret.getLength() > 0 ? ",OPTIONAL" :
"OPTIONAL");

(snip)


- -- 
Olivier Hallot
Founder, Board of Directors Member - The Document Foundation
LibreOffice translation leader for Brazilian Portuguese
+55-21-8822-8812
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJPAc/xAAoJEJp3R7nH3vLxzlwH/2ImYxCTRbrpzzDamR8V48AV
IXbv5yhv8TIUYL6BRgDAHoT0Qte5HDXSL1FJAuDhUqu6R31hRfOBjToFb7k5DVsS
dFkfIrrmEG2efs4jF4GM1yUNF307CECaN0byOw/7uSlJHjqOn4n5FX1m0UK9vHWU
MJaOkBEHh55/V0pXgoTWqxi1FRliV7PDVXTn8tiUpzQGU18sz6+XJmP7GUYMHieK
yS167M7oY0GtxAUzF+TIz16e3vvk23m6dwue/XLowwIqX9cVWACgmyTAjB81t36a
1zle5kDFpt9M/VP6gbebahhKTXn99yshyyHfesqb0HvNTdvWqs0a1qrGWQeMmYE=
=8r/d
-----END PGP SIGNATURE-----

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.