Add nullability to large parts of the codebase
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -15,13 +15,13 @@ namespace CreatureLib::Battling {
|
||||
/// for it.
|
||||
class EventHook {
|
||||
public:
|
||||
typedef std::function<void(const CreatureLib::Battling::EventData*)> EventHookFunc;
|
||||
typedef std::function<void(const CreatureLib::Battling::EventData* non_null)> EventHookFunc;
|
||||
|
||||
private:
|
||||
std::vector<EventHookFunc> _listeners;
|
||||
size_t _offset;
|
||||
size_t _capacity;
|
||||
u8* _memory = nullptr;
|
||||
u8* nullable _memory = nullptr;
|
||||
|
||||
static constexpr size_t initialSize = 2048;
|
||||
static constexpr size_t stepSize = 1024;
|
||||
|
||||
Reference in New Issue
Block a user