WaE in filter/source/svg/svgreader.cxx

Stephan Bergmann sbergman at redhat.com
Tue May 8 05:01:57 PDT 2012


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


More information about the LibreOffice mailing list