Просмотр исходного кода

Merge pull request #307 from Dmitry-Me/simplifyOverengineeredCode

Simplify overengineered code
Lee Thomason 11 лет назад
Родитель
Сommit
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