Skip to content

Commit

Permalink
JANITORIAL: NULL -> 0
Browse files Browse the repository at this point in the history
In C++, NULL is always 0.
We use 0 everywhere else, so to be consistent, change these
NULL to 0 too.
  • Loading branch information
DrMcCoy committed Aug 9, 2013
1 parent 04576d9 commit 35362d6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/engines/kotor/gui/widgets/button.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ WidgetButton::~WidgetButton() {

void WidgetButton::load(const Aurora::GFFStruct &gff) {
KotORWidget::load(gff);
if (getTextHighlightableComponent() != NULL) {
if (getTextHighlightableComponent() != 0) {
setDefaultHighlighting(getTextHighlightableComponent());
}
if (getQuadHighlightableComponent() != NULL) {
if (getQuadHighlightableComponent() != 0) {
setDefaultHighlighting(getQuadHighlightableComponent());
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/graphics/indexbuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ void IndexBuffer::setSize(uint32 indexCount, uint32 indexSize, GLenum indexType)
if (_count * _size)
_data = std::malloc(_count * _size);
else
_data = NULL;
_data = 0;
}

GLvoid *IndexBuffer::getData() {
Expand Down
2 changes: 1 addition & 1 deletion src/graphics/vertexbuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ void VertexBuffer::setSize(uint32 vertCount, uint32 vertSize) {
if (_count * _size)
_data = std::malloc(_count * _size);
else
_data = NULL;
_data = 0;
}

void VertexBuffer::setVertexDecl(const VertexDecl &decl) {
Expand Down

0 comments on commit 35362d6

Please sign in to comment.