Skip to content

Commit

Permalink
NEVERHOOD: Silence noisy compiler warning.
Browse files Browse the repository at this point in the history
This is due to NULL being used. Switching to nullptr which is equivalent
i.e. 0 should silence this.
  • Loading branch information
digitall committed Jul 30, 2013
1 parent 3a4507b commit d81f645
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion engines/neverhood/entity.cpp
Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion engines/neverhood/entity.h
Expand Up @@ -98,7 +98,7 @@ class Entity {
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);
Expand Down

0 comments on commit d81f645

Please sign in to comment.