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_database.cpp | |
parent | 591ec17b1c99db7f120c22ca9fb20ae05fe78325 (diff) |
Code modernize ...
* replace 0/NULL with nullptr [using clang-tidy]
Diffstat (limited to 'plugins/MirLua/src/m_database.cpp')
-rw-r--r-- | plugins/MirLua/src/m_database.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/plugins/MirLua/src/m_database.cpp b/plugins/MirLua/src/m_database.cpp index 7519caa8c8..5556c77e5c 100644 --- a/plugins/MirLua/src/m_database.cpp +++ b/plugins/MirLua/src/m_database.cpp @@ -87,7 +87,7 @@ static int db_ContactIterator(lua_State *L) static int db_Contacts(lua_State *L)
{
- const char *szModule = NULL;
+ const char *szModule = nullptr;
switch (lua_type(L, 1))
{
@@ -131,7 +131,7 @@ static const char *mods[] = "FullName",
"Uid",
"DisplayName",
- NULL
+ nullptr
};
static int db_GetContactInfo(lua_State *L)
@@ -145,7 +145,7 @@ static int db_GetContactInfo(lua_State *L) type = luaL_checkinteger(L, 2);
break;
case LUA_TSTRING:
- type = luaL_checkoption(L, 2, NULL, mods) + 1;
+ type = luaL_checkoption(L, 2, nullptr, mods) + 1;
break;
default:
luaL_argerror(L, 2, luaL_typename(L, 2));
@@ -641,14 +641,14 @@ static luaL_Reg databaseApi[] = { "SetSetting", db_WriteSetting },
{ "DeleteSetting", db_DeleteSetting },
- { "DBVT_BYTE", NULL },
- { "DBVT_WORD", NULL },
- { "DBVT_DWORD", NULL },
- { "DBVT_ASCIIZ", NULL },
- { "DBVT_UTF8", NULL },
- { "DBVT_WCHAR", NULL },
+ { "DBVT_BYTE", nullptr },
+ { "DBVT_WORD", nullptr },
+ { "DBVT_DWORD", nullptr },
+ { "DBVT_ASCIIZ", nullptr },
+ { "DBVT_UTF8", nullptr },
+ { "DBVT_WCHAR", nullptr },
- { NULL, NULL }
+ { nullptr, nullptr }
};
/***********************************************/
|