소스 검색

Replace C-style cast with static_cast

Dmitry-Me 11 년 전
부모
커밋
5657176b61
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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