diff --git a/include/DOM/Document.hpp b/include/DOM/Document.hpp index 8d843c95..636fa175 100644 --- a/include/DOM/Document.hpp +++ b/include/DOM/Document.hpp @@ -3,8 +3,6 @@ //////////////////////////// // C++ DOM definition -// -// $Id$ //////////////////////////// #include @@ -45,8 +43,8 @@ class Document : public Node Document(const Document& rhs) : Node(rhs) { } explicit Document(const Node& rhs) : Node(rhs) { - if(NodeT::impl_ == 0) // null nodes can always be cast - return; + if(NodeT::impl_ == 0) // null nodes can always be cast + return; if(rhs.getNodeType() != Node::DOCUMENT_NODE) throw DOMBadCast("Document"); } // Document @@ -102,14 +100,13 @@ class Document : public Node return NodeList(dImpl()->getElementsByTagNameNS(namespaceURI, localName)); } // getElementsByTagNameNS - Element getElementById(const stringT& elementId) const { return Element(dImpl()->getElementById(elementId)); } - + Element getElementById(const stringT& elementId) const { return Element(dImpl()->getElementById(elementId)); } // getElementById Traversal::DocumentTraversal createDocumentTraversal() { Traversal::DocumentTraversal docTraversal(new Traversal::DocumentTraversalImpl()); return docTraversal; - } + } // createDocumentTraversal private: Document_impl* dImpl() const { return dynamic_cast*>(*NodeT::impl_); }