diff --git a/tinyxml2.h b/tinyxml2.h index e7bae7b..a72699c 100755 --- a/tinyxml2.h +++ b/tinyxml2.h @@ -710,7 +710,7 @@ public: void SetValue( const char* val, bool staticMem=false ); /// Gets the line number the node is in, if the document was parsed from a file. - int GetParseLineNum() const { return _parseLineNum; } + int GetLineNum() const { return _parseLineNum; } /// Get the parent of this node on the DOM. const XMLNode* Parent() const { @@ -1094,7 +1094,7 @@ public: const char* Value() const; /// Gets the line number the attribute is in, if the document was parsed from a file. - int GetParseLineNum() const { return _parseLineNum; } + int GetLineNum() const { return _parseLineNum; } /// The next attribute in the list. const XMLAttribute* Next() const { diff --git a/xmltest.cpp b/xmltest.cpp index a4fc5c6..f598113 100644 --- a/xmltest.cpp +++ b/xmltest.cpp @@ -1687,34 +1687,34 @@ int main( int argc, const char ** argv ) bool VisitEnter(const XMLDocument& doc) { - Push('D', doc.GetParseLineNum()); + Push('D', doc.GetLineNum()); return true; } bool VisitEnter(const XMLElement& element, const XMLAttribute* firstAttribute) { - Push('E', element.GetParseLineNum()); + Push('E', element.GetLineNum()); for (const XMLAttribute *attr = firstAttribute; attr != 0; attr = attr->Next()) - Push('A', attr->GetParseLineNum()); + Push('A', attr->GetLineNum()); return true; } bool Visit(const XMLDeclaration& declaration) { - Push('L', declaration.GetParseLineNum()); + Push('L', declaration.GetLineNum()); return true; } bool Visit(const XMLText& text) { - Push('T', text.GetParseLineNum()); + Push('T', text.GetLineNum()); return true; } bool Visit(const XMLComment& comment) { - Push('C', comment.GetParseLineNum()); + Push('C', comment.GetLineNum()); return true; } bool Visit(const XMLUnknown& unknown) { - Push('U', unknown.GetParseLineNum()); + Push('U', unknown.GetLineNum()); return true; }