Minor code cleanup

This commit is contained in:
Alex Szpakowski
2014-05-01 14:12:21 -03:00
parent e667485f68
commit e4dc533bb2
26 changed files with 112 additions and 110 deletions
+2 -2
View File
@@ -30,7 +30,7 @@ namespace sdl
{
Cursor::Cursor(image::ImageData *data, int hotx, int hoty)
: cursor(0)
: cursor(nullptr)
, type(CURSORTYPE_IMAGE)
, systemType(CURSOR_MAX_ENUM)
{
@@ -63,7 +63,7 @@ Cursor::Cursor(image::ImageData *data, int hotx, int hoty)
}
Cursor::Cursor(mouse::Cursor::SystemCursor cursortype)
: cursor(0)
: cursor(nullptr)
, type(CURSORTYPE_SYSTEM)
, systemType(cursortype)
{
+2 -2
View File
@@ -71,7 +71,7 @@ const char *Mouse::getName() const
}
Mouse::Mouse()
: curCursor(0)
: curCursor(nullptr)
{
}
@@ -187,7 +187,7 @@ void Mouse::setVisible(bool visible)
bool Mouse::isDown(Button *buttonlist) const
{
Uint32 buttonstate = SDL_GetMouseState(0, 0);
Uint32 buttonstate = SDL_GetMouseState(nullptr, nullptr);
for (Button button = *buttonlist; button != BUTTON_MAX_ENUM; button = *(++buttonlist))
{