1
0
Эх сурвалжийг харах

Merge pull request #307 from Dmitry-Me/simplifyOverengineeredCode

Simplify overengineered code
Lee Thomason 11 жил өмнө
parent
commit
8c067ab730
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      tinyxml2.h

+ 1 - 1
tinyxml2.h

@@ -760,7 +760,7 @@ public:
     }
 
     XMLNode*		LastChild()								{
-        return const_cast<XMLNode*>(const_cast<const XMLNode*>(this)->LastChild() );
+        return _lastChild;
     }
 
     /** Get the last child element or optionally the last child