Explorar el Código

Merge pull request #194 from Dmitry-Me/fixCStyleCast

Replace C-style cast with static_cast
Lee Thomason hace 11 años
padre
commit
2af5679b26
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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