Change NULL to nullptr

This commit is contained in:
Birunthan Mohanathas
2013-05-31 17:28:39 +03:00
parent da9384cfad
commit 1934c5db72
92 changed files with 760 additions and 759 deletions

View File

@ -37,7 +37,7 @@ static int Print(lua_State* L)
// Get result
const char* s = lua_tostring(L, -1);
if (s == NULL)
if (s == nullptr)
{
return luaL_error(L, LUA_QL("tostring") " must return a string to " LUA_QL("print"));
}
@ -73,7 +73,7 @@ void LuaManager::RegisterGlobal(lua_State* L)
const luaL_Reg toluaFuncs[] =
{
{ "cast", tolua_cast },
{ NULL, NULL }
{ nullptr, nullptr }
};
luaL_register(L, "tolua", toluaFuncs);

View File

@ -147,7 +147,7 @@ void LuaManager::RegisterMeasure(lua_State* L)
{ "GetMinValue", GetMinValue },
{ "GetMaxValue", GetMaxValue },
{ "GetStringValue", GetStringValue },
{ NULL, NULL }
{ nullptr, nullptr }
};
luaL_register(L, "Measure", functions);

View File

@ -164,7 +164,7 @@ void LuaManager::RegisterMeter(lua_State* L)
{ "Hide", Hide },
{ "Show", Show },
{ "SetText", SetText },
{ NULL, NULL }
{ nullptr, nullptr }
};
luaL_register(L, "Meter", functions);

View File

@ -228,7 +228,7 @@ void LuaManager::RegisterMeterWindow(lua_State* L)
{ "GetX", GetX },
{ "GetY", GetY },
{ "MakePathAbsolute", MakePathAbsolute },
{ NULL, NULL }
{ nullptr, nullptr }
};
luaL_register(L, "MeterWindow", functions);