[ https://issues.apache.org/jira/browse/XERCESC-1678?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Boris Kolpackov updated XERCESC-1678: ------------------------------------- Affects Version/s: (was: 2.9.0) (was: 3.0.0) 2.7.0 Fix Version/s: (was: 2.7.0) 2.9.0 3.0.0 > PSVIAttributeList::getPSVIAttributeToFill not const correct > ----------------------------------------------------------- > > Key: XERCESC-1678 > URL: https://issues.apache.org/jira/browse/XERCESC-1678 > Project: Xerces-C++ > Issue Type: Bug > Components: DOM > Affects Versions: 2.7.0 > Environment: MacOSX, Linux GCC 4.1 > Reporter: kent williams > Priority: Minor > Fix For: 3.0.0, 2.9.0 > > > I get warnings in this inline method (getPSVIAttributeToFill) about casts > from const XMLCh * to XMLCh *. > For example: > Line 185, PSVIAttributeList.hpp : rAttrNameList->addElement((XMLCh > *)attrName); > The real problem is that the addElement method takes a non-const XMLCh *, so > getPSVIAttributeToFill has to cast its const argument to non-const or this > would be compiler error. > I don't know if anyone is committed to fixing up const-correctness in > Xerces-C++ -- if it wasn't written in a const-paranoid manner, this would be > a pretty large job. But at a minimum, using const_cast<XMLCh *>() instead of > C-style casting would shut GCC4 up. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]