Ver Fonte

Replace C-style cast with static_cast

Dmitry-Me há 11 anos atrás
pai
commit
5657176b61
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      tinyxml2.h

+ 1 - 1
tinyxml2.h

@@ -370,7 +370,7 @@ public:
             return;
         }
         --_currentAllocs;
-        Chunk* chunk = (Chunk*)mem;
+        Chunk* chunk = static_cast<Chunk*>( mem );
 #ifdef DEBUG
         memset( chunk, 0xfe, sizeof(Chunk) );
 #endif