Explorar el Código

Simplify overengineered code

Dmitry-Me hace 11 años
padre
commit
8d4e0ec528
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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