NEVERHOOD: Silence noisy compiler warning.

This is due to NULL being used. Switching to nullptr which is equivalent
i.e. 0 should silence this.
This commit is contained in:
D G Turner 2013-07-30 21:18:01 +01:00
parent 3a4507bf5a
commit d81f6450c9
2 changed files with 2 additions and 2 deletions

View File

@ -47,7 +47,7 @@ Entity *MessageParam::asEntity() const {
}
Entity::Entity(NeverhoodEngine *vm, int priority)
: _vm(vm), _updateHandlerCb(NULL), _messageHandlerCb(NULL), _priority(priority), _soundResources(NULL) {
: _vm(vm), _updateHandlerCb(NULL), _messageHandlerCb(nullptr), _priority(priority), _soundResources(NULL) {
}
Entity::~Entity() {

View File

@ -98,7 +98,7 @@ public:
void incGlobalVar(uint32 nameHash, int incrValue);
void incSubVar(uint32 nameHash, uint32 subNameHash, int incrValue);
int getPriority() const { return _priority; }
bool hasMessageHandler() const { return _messageHandlerCb != NULL; }
bool hasMessageHandler() const { return _messageHandlerCb != nullptr; }
protected:
void (Entity::*_updateHandlerCb)();
uint32 (Entity::*_messageHandlerCb)(int messageNum, const MessageParam &param, Entity *sender);