diff options
author | Goraf <22941576+Goraf@users.noreply.github.com> | 2017-11-13 15:03:31 +0100 |
---|---|---|
committer | Goraf <22941576+Goraf@users.noreply.github.com> | 2017-11-13 15:07:33 +0100 |
commit | a7c24ca48995cf2bf436156302f96b91bf135409 (patch) | |
tree | 953835509ff1b778833e78fd7b74b05e05e77c84 /plugins/MirLua/src/m_json.cpp | |
parent | 591ec17b1c99db7f120c22ca9fb20ae05fe78325 (diff) |
Code modernize ...
* replace 0/NULL with nullptr [using clang-tidy]
Diffstat (limited to 'plugins/MirLua/src/m_json.cpp')
-rw-r--r-- | plugins/MirLua/src/m_json.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/MirLua/src/m_json.cpp b/plugins/MirLua/src/m_json.cpp index e4bbf233ef..60f75411e9 100644 --- a/plugins/MirLua/src/m_json.cpp +++ b/plugins/MirLua/src/m_json.cpp @@ -133,7 +133,7 @@ const struct luaL_Reg jsonApi[] = { "__tostring", json__tostring }, { "__gc", json__gc }, - { NULL, NULL } + { nullptr, nullptr } }; @@ -195,7 +195,7 @@ static int lua_Encode(lua_State *L) break; } case LUA_TLIGHTUSERDATA: - if (lua_touserdata(L, 1) == NULL) + if (lua_touserdata(L, 1) == nullptr) { lua_pushliteral(L, "null"); break; @@ -212,7 +212,7 @@ static const luaL_Reg methods[] = { "Decode", lua_Decode }, { "Encode", lua_Encode }, - { NULL, NULL } + { nullptr, nullptr } }; LUAMOD_API int luaopen_m_json(lua_State *L) |