You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by bu...@apache.org on 2002/11/15 14:12:05 UTC

DO NOT REPLY [Bug 14587] New: - in dom/DOMNode.hpp, getNodeType() returns a short instead of a NodeType enum

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14587>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14587

in dom/DOMNode.hpp, getNodeType() returns a short instead of a NodeType enum

           Summary: in dom/DOMNode.hpp, getNodeType() returns a short
                    instead of a NodeType enum
           Product: Xerces-C++
           Version: 2.1.0
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: DOM
        AssignedTo: xerces-c-dev@xml.apache.org
        ReportedBy: Jean-Daniel.Fekete@inria.fr


Whereas the documentation says:
    /**
     * An enum value representing the type of the underlying object.
     * @since DOM Level 1
     */
    virtual short           getNodeType() const = 0;

the returned value is actually a short.  I don't understand the reason not to
have a NodeType here since it would enable a little bit of type safety.

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org