diff --git a/tinyxml2.h b/tinyxml2.h index a6da2ec..d3d0b0a 100755 --- a/tinyxml2.h +++ b/tinyxml2.h @@ -760,7 +760,7 @@ public: } XMLNode* LastChild() { - return const_cast(const_cast(this)->LastChild() ); + return _lastChild; } /** Get the last child element or optionally the last child