فهرست منبع

Simplify overengineered code

Dmitry-Me 11 سال پیش
والد
کامیت
8d4e0ec528
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