1
0
cuberite-2a/src/BlockEntities
peterbell10 a4dbb5c582
Prefer static_cast to reinterpret_cast (#4223)
* Change reinterpret_cast -> static_cast wherever possible
* Remove more unnecessary `const_cast`s.

reinterpret_casts should be avoided for the same reason as c-style casts - they don't do any type-checking. reinterpret_cast was mainly being used for down-casting in inheritance hierarchies but static_cast works just as well while also making sure that there is actually an inheritance relationship there.
2018-05-02 08:50:36 +01:00
..
BeaconEntity.cpp Prefer static_cast to reinterpret_cast (#4223) 2018-05-02 08:50:36 +01:00
BeaconEntity.h BlockEntities: Support cloning self. 2017-06-16 14:11:28 +02:00
BedEntity.cpp Prefer static_cast to reinterpret_cast (#4223) 2018-05-02 08:50:36 +01:00
BedEntity.h Added bed entity (#3823) 2017-07-07 09:31:45 +02:00
BlockEntity.cpp Fix switch warnings (#4013) 2017-09-14 09:48:57 +01:00
BlockEntity.h cBlockArea supports block entities. (#3795) 2017-06-24 11:58:06 +02:00
BlockEntityWithItems.cpp Prefer static_cast to reinterpret_cast (#4223) 2018-05-02 08:50:36 +01:00
BlockEntityWithItems.h BlockEntities: Support cloning self. 2017-06-16 14:11:28 +02:00
BrewingstandEntity.cpp Prefer static_cast to reinterpret_cast (#4223) 2018-05-02 08:50:36 +01:00
BrewingstandEntity.h BlockEntities: Support cloning self. 2017-06-16 14:11:28 +02:00
ChestEntity.cpp Prefer static_cast to reinterpret_cast (#4223) 2018-05-02 08:50:36 +01:00
ChestEntity.h BlockEntities: Support cloning self. 2017-06-16 14:11:28 +02:00
CMakeLists.txt Add the fmt library (#4065) 2018-01-03 17:41:16 +00:00
CommandBlockEntity.cpp Prefer static_cast to reinterpret_cast (#4223) 2018-05-02 08:50:36 +01:00
CommandBlockEntity.h BlockEntities: Support cloning self. 2017-06-16 14:11:28 +02:00
DispenserEntity.cpp Changed some int parameters to vector parameters (#3937) 2017-09-07 10:25:34 +02:00
DispenserEntity.h BlockEntities: Support cloning self. 2017-06-16 14:11:28 +02:00
DropperEntity.cpp BlockEntities: Support cloning self. 2017-06-16 14:11:28 +02:00
DropperEntity.h BlockEntities: Support cloning self. 2017-06-16 14:11:28 +02:00
DropSpenserEntity.cpp Prefer static_cast to reinterpret_cast (#4223) 2018-05-02 08:50:36 +01:00
DropSpenserEntity.h Fixed missing "override" 2017-06-16 16:20:33 +02:00
EnderChestEntity.cpp Sitting cats block enderchests from opening (#3906) 2017-08-17 16:29:43 +02:00
EnderChestEntity.h BlockEntities: Support cloning self. 2017-06-16 14:11:28 +02:00
FlowerPotEntity.cpp Prefer static_cast to reinterpret_cast (#4223) 2018-05-02 08:50:36 +01:00
FlowerPotEntity.h BlockEntities: Support cloning self. 2017-06-16 14:11:28 +02:00
FurnaceEntity.cpp Prefer static_cast to reinterpret_cast (#4223) 2018-05-02 08:50:36 +01:00
FurnaceEntity.h Smelting Gives Experience (#4094) 2018-04-11 07:46:11 +01:00
HopperEntity.cpp Prefer static_cast to reinterpret_cast (#4223) 2018-05-02 08:50:36 +01:00
HopperEntity.h BlockEntities: Support cloning self. 2017-06-16 14:11:28 +02:00
JukeboxEntity.cpp Prefer static_cast to reinterpret_cast (#4223) 2018-05-02 08:50:36 +01:00
JukeboxEntity.h BlockEntities: Support cloning self. 2017-06-16 14:11:28 +02:00
MobHeadEntity.cpp Prefer static_cast to reinterpret_cast (#4223) 2018-05-02 08:50:36 +01:00
MobHeadEntity.h Add cUUID class (#3871) 2017-08-25 13:43:18 +01:00
MobSpawnerEntity.cpp Prefer static_cast to reinterpret_cast (#4223) 2018-05-02 08:50:36 +01:00
MobSpawnerEntity.h BlockEntities: Support cloning self. 2017-06-16 14:11:28 +02:00
NoteEntity.cpp Prefer static_cast to reinterpret_cast (#4223) 2018-05-02 08:50:36 +01:00
NoteEntity.h Added 1.12 blocks (#3760) 2017-06-30 10:46:58 +02:00
SignEntity.cpp Prefer static_cast to reinterpret_cast (#4223) 2018-05-02 08:50:36 +01:00
SignEntity.h BlockEntities: Support cloning self. 2017-06-16 14:11:28 +02:00