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_protocols.cpp | |
parent | 591ec17b1c99db7f120c22ca9fb20ae05fe78325 (diff) |
Code modernize ...
* replace 0/NULL with nullptr [using clang-tidy]
Diffstat (limited to 'plugins/MirLua/src/m_protocols.cpp')
-rw-r--r-- | plugins/MirLua/src/m_protocols.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/MirLua/src/m_protocols.cpp b/plugins/MirLua/src/m_protocols.cpp index ab206489f2..f4ea022175 100644 --- a/plugins/MirLua/src/m_protocols.cpp +++ b/plugins/MirLua/src/m_protocols.cpp @@ -1,10 +1,10 @@ #include "stdafx.h"
-HANDLE hRecvMessage = NULL;
+HANDLE hRecvMessage = nullptr;
static int lua_GetProtocol(lua_State *L)
{
- const char *szProto = NULL;
+ const char *szProto = nullptr;
switch (lua_type(L, 1))
{
@@ -109,7 +109,7 @@ static int lua_ChainRecv(lua_State *L) static int lua_GetAccount(lua_State *L)
{
- const char *name = NULL;
+ const char *name = nullptr;
switch (lua_type(L, 1))
{
@@ -157,7 +157,7 @@ static int lua_AccountIterator(lua_State *L) static int lua_Accounts(lua_State *L)
{
- const char *szProto = NULL;
+ const char *szProto = nullptr;
switch (lua_type(L, 1))
{
@@ -191,7 +191,7 @@ static int lua_Accounts(lua_State *L) static int lua_CallService(lua_State *L)
{
- const char *szModule = NULL;
+ const char *szModule = nullptr;
switch (lua_type(L, 1))
{
@@ -247,7 +247,7 @@ static luaL_Reg protocolsApi[] = { "CallService", lua_CallService },
- { NULL, NULL }
+ { nullptr, nullptr }
};
/***********************************************/
|