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 _______________________________________________ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice