Selaa lähdekoodia

Replace C-style cast with static_cast

Dmitry-Me 11 vuotta sitten
vanhempi
commit
5657176b61
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      tinyxml2.h

+ 1 - 1
tinyxml2.h

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