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


On 05/08/2012 11:31 AM, julien2412 wrote:
If either i put a static_cast with sal_Int32 or sal_uInt32 for
"xChildren->item(i)->getNodeType()", compilation works.
But I read this link
http://www.parashift.com/c++-faq-lite/newbie.html#faq-29.19 and NodeType is
an enumeration if I don't mistake.
So what's the best way to remove this WaE ?

The canonic (if non-obvious) way to do that is to use unary plus to force the enum value into a corresponding value of the underlying integer type.

Stephan

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.