diff options
| author | Erik Schilling <ablu.erikschilling@googlemail.com> | 2013-04-27 21:42:58 +0200 |
|---|---|---|
| committer | Erik Schilling <ablu.erikschilling@googlemail.com> | 2013-04-27 21:42:58 +0200 |
| commit | d4f3105d9a879f27baad6e43b8b3cb6fe2f0ef50 (patch) | |
| tree | 474ec7369f0d367d7780f73901d38d1daec4d2eb /src/scripting/lua.cpp | |
| parent | 2c14cd30ecbacbd5a808cb2641d40f6d568ec294 (diff) | |
| download | manaserv-d4f3105d9a879f27baad6e43b8b3cb6fe2f0ef50.tar.gz manaserv-d4f3105d9a879f27baad6e43b8b3cb6fe2f0ef50.tar.xz manaserv-d4f3105d9a879f27baad6e43b8b3cb6fe2f0ef50.zip | |
Use nullptr instead of NULL everywhere
Diffstat (limited to 'src/scripting/lua.cpp')
| -rw-r--r-- | src/scripting/lua.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/scripting/lua.cpp b/src/scripting/lua.cpp index ac88178..422649f 100644 --- a/src/scripting/lua.cpp +++ b/src/scripting/lua.cpp @@ -3691,11 +3691,11 @@ LuaScript::LuaScript(): { "map_get_objects", map_get_objects }, { "announce", announce }, { "get_special_info", get_special_info }, - { NULL, NULL } + { nullptr, nullptr } }; #if LUA_VERSION_NUM < 502 lua_pushvalue(mRootState, LUA_GLOBALSINDEX); - luaL_register(mRootState, NULL, callbacks); + luaL_register(mRootState, nullptr, callbacks); #else lua_pushglobaltable(mRootState); luaL_setfuncs(mRootState, callbacks, 0); @@ -3709,7 +3709,7 @@ LuaScript::LuaScript(): { "reusetime", attack_get_reusetime }, { "damage", attack_get_damage }, { "on_attack", attack_on_attack }, - { NULL, NULL } + { nullptr, nullptr } }; static luaL_Reg const members_Damage[] = { @@ -3722,7 +3722,7 @@ LuaScript::LuaScript(): { "type", damage_get_type }, { "is_truestrike", damage_is_truestrike }, { "range", damage_get_range }, - { NULL, NULL } + { nullptr, nullptr } }; static luaL_Reg const members_Entity[] = { @@ -3789,14 +3789,14 @@ LuaScript::LuaScript(): { "has_status", entity_has_status }, { "status_time", entity_get_status_time }, { "set_status_time", entity_set_status_time }, - { NULL, NULL } + { nullptr, nullptr } }; static luaL_Reg const members_ItemClass[] = { { "on", item_class_on }, { "name", item_class_get_name }, { "attacks", item_class_attacks }, - { NULL, NULL } + { nullptr, nullptr } }; static luaL_Reg const members_MapObject[] = { @@ -3804,7 +3804,7 @@ LuaScript::LuaScript(): { "bounds", map_object_get_bounds }, { "name", map_object_get_name }, { "type", map_object_get_type }, - { NULL, NULL } + { nullptr, nullptr } }; static luaL_Reg const members_MonsterClass[] = { @@ -3812,12 +3812,12 @@ LuaScript::LuaScript(): { "on_damage", monster_class_on_damage }, { "name", monster_class_get_name }, { "attacks", monster_class_attacks }, - { NULL, NULL } + { nullptr, nullptr } }; static luaL_Reg const members_StatusEffect[] = { { "on_tick", status_effect_on_tick }, - { NULL, NULL } + { nullptr, nullptr } }; static luaL_Reg const members_SpecialInfo[] = { @@ -3827,7 +3827,7 @@ LuaScript::LuaScript(): { "on_use", specialinfo_on_use }, { "on_recharged", specialinfo_on_recharged }, { "category", specialinfo_get_category }, - { NULL, NULL} + { nullptr, nullptr} }; LuaAttackInfo::registerType(mRootState, "Attack", members_AttackInfo); |
