commit cbc23d3503666c2eae1f4a2d9038bdff30ba3101 parent 7f14f953b415997d7cacc5665c2b26e997235b8f Author: Michael Savage <mikejsavage@gmail.com> Date: Thu Dec 29 00:53:42 +0200 Const madness Diffstat:
bsp.cc | | | 4 | ++-- |
diff --git a/bsp.cc b/bsp.cc @@ -103,7 +103,7 @@ void bsp_destroy( BSP * bsp ) { template< typename T > void BSP::load_lump( u32 & num_ts, T *& ts, const BSP_Lump lump ) { - const BSP_Header * const header = reinterpret_cast< BSP_Header * >( contents ); + const BSP_Header * header = reinterpret_cast< BSP_Header * >( contents ); const BSP_HeaderLump & hl = header->lumps[ lump ]; ASSERT( hl.len % sizeof( T ) == 0 ); @@ -115,7 +115,7 @@ void BSP::load_lump( u32 & num_ts, T *& ts, const BSP_Lump lump ) { } void BSP::load_vis() { - const BSP_Header * const header = reinterpret_cast< BSP_Header * >( contents ); + const BSP_Header * header = reinterpret_cast< BSP_Header * >( contents ); const BSP_HeaderLump & hl = header->lumps[ LUMP_VISIBILITY ]; vis = reinterpret_cast< BSP_Vis * >( contents + hl.off );