From 8d4e0ec528919ad3857ac8130933b10e5d648565 Mon Sep 17 00:00:00 2001 From: Dmitry-Me Date: Mon, 30 Mar 2015 12:58:28 +0300 Subject: [PATCH] Simplify overengineered code --- tinyxml2.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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