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
+3 -3
View File
@@ -27,7 +27,7 @@ namespace love
namespace system
{
static System *instance = 0;
static System *instance = nullptr;
int w_getOS(lua_State *L)
{
@@ -99,7 +99,7 @@ static const luaL_Reg functions[] =
extern "C" int luaopen_love_system(lua_State *L)
{
if (instance == 0)
if (instance == nullptr)
{
instance = new love::system::sdl::System();
}
@@ -111,7 +111,7 @@ extern "C" int luaopen_love_system(lua_State *L)
w.name = "system";
w.flags = MODULE_T;
w.functions = functions;
w.types = 0;
w.types = nullptr;
return luax_register_module(L, w);
}