DarkRadiant: master a08b50ad
Author | Committer | Branch | Timestamp | Parent |
---|---|---|---|---|
orbweaver | orbweaver | master | 23.01.2021 13:04 | master a78163a2 |
Changeset | Minor code cleanups - Non-const Doom3EntityClass::getAttribute() now uses const_cast and std::add_const to call the const version (which is safe, unlike having a const method call a non-const method which is UB). The StackOverflow consensus is while this is a somewhat ugly line of code, it is better than repeating several lines in a method body. - Add 'override' to various public methods (latest CLang++ actually warns about this). |
|||
mod - radiantcore/eclass/Doom3EntityClass.cpp | Diff File | |||
mod - radiantcore/eclass/Doom3EntityClass.h | Diff File | |||
mod - radiantcore/entity/SpawnArgs.h | Diff File | |||
mod - radiantcore/entity/generic/GenericEntityNode.h | Diff File | |||
mod - radiantcore/entity/light/Light.h | Diff File | |||
mod - radiantcore/entity/light/LightNode.h | Diff File |