Uploaded image for project: 'Xerces-C++'
  1. Xerces-C++
  2. XERCESC-1223

Change importNode in DOMDocument to a const DOMNode*

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.5.0
    • 2.6.0
    • DOM
    • None
    • All implementations.

    Description

      The DOMDocument::importNode method takes a DOMNode*.

      To improve consistency it would be nice to have the pointer passed to the import be a const DOMNode*.

      The method currently looks like:

      DOMNode* DOMDocument::importNode (DOMNode *importedNode, bool deep);

      but seeing as the importedNode shouldn't change with the call, the method could be changed to:

      DOMNode* DOMDocument::importNode (const DOMNode *importedNode, bool deep);

      Attachments

        Activity

          People

            Unassigned Unassigned
            nkomick Nicholas Komick
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: