mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Change NULL to nullptr
This commit is contained in:
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
Reference in New Issue
Block a user