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 /protocols/Tox/src/tox_proto.cpp | |
parent | 591ec17b1c99db7f120c22ca9fb20ae05fe78325 (diff) |
Code modernize ...
* replace 0/NULL with nullptr [using clang-tidy]
Diffstat (limited to 'protocols/Tox/src/tox_proto.cpp')
-rw-r--r-- | protocols/Tox/src/tox_proto.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/protocols/Tox/src/tox_proto.cpp b/protocols/Tox/src/tox_proto.cpp index 5b05d878c2..5b6d345c9c 100644 --- a/protocols/Tox/src/tox_proto.cpp +++ b/protocols/Tox/src/tox_proto.cpp @@ -2,8 +2,8 @@ CToxProto::CToxProto(const char* protoName, const wchar_t* userName)
: PROTO<CToxProto>(protoName, userName),
- toxThread(NULL), isTerminated(false),
- hCheckingThread(NULL), hPollingThread(NULL),
+ toxThread(nullptr), isTerminated(false),
+ hCheckingThread(nullptr), hPollingThread(nullptr),
hMessageProcess(1)
{
InitNetlib();
@@ -33,7 +33,7 @@ CToxProto::CToxProto(const char* protoName, const wchar_t* userName) // hAudioDialogs = WindowList_Create();
- hTerminateEvent = CreateEvent(NULL, FALSE, FALSE, NULL);
+ hTerminateEvent = CreateEvent(nullptr, FALSE, FALSE, nullptr);
}
CToxProto::~CToxProto()
@@ -173,7 +173,7 @@ int CToxProto::SetStatus(int iNewStatus) // login
isTerminated = false;
m_iStatus = ID_STATUS_CONNECTING;
- hPollingThread = ForkThreadEx(&CToxProto::PollingThread, NULL, NULL);
+ hPollingThread = ForkThreadEx(&CToxProto::PollingThread, nullptr, nullptr);
}
else {
// set tox status
@@ -192,7 +192,7 @@ HANDLE CToxProto::GetAwayMsg(MCONTACT hContact) return (HANDLE)hContact;
}
- return 0;
+ return nullptr;
}
int CToxProto::SetAwayMsg(int, const wchar_t *msg)
|