Przeglądaj źródła

Merge pull request #307 from Dmitry-Me/simplifyOverengineeredCode

Simplify overengineered code
Lee Thomason 11 lat temu
rodzic
commit
8c067ab730
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      tinyxml2.h

+ 1 - 1
tinyxml2.h

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