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/Clist_modern/src/modern_aniavatars.cpp | |
parent | 591ec17b1c99db7f120c22ca9fb20ae05fe78325 (diff) |
Code modernize ...
* replace 0/NULL with nullptr [using clang-tidy]
Diffstat (limited to 'plugins/Clist_modern/src/modern_aniavatars.cpp')
-rw-r--r-- | plugins/Clist_modern/src/modern_aniavatars.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Clist_modern/src/modern_aniavatars.cpp b/plugins/Clist_modern/src/modern_aniavatars.cpp index 8e374b19eb..1cc510b4b5 100644 --- a/plugins/Clist_modern/src/modern_aniavatars.cpp +++ b/plugins/Clist_modern/src/modern_aniavatars.cpp @@ -179,7 +179,7 @@ static void _AniAva_AnimationTreadProc(void*) Netlib_Logf(nullptr, "AnimationTreadProc thread start");
// wait forever till hExitEvent signalled
- HANDLE hThread = 0;
+ HANDLE hThread = nullptr;
s_AnimationThreadID = GetCurrentThreadId();
DuplicateHandle(GetCurrentProcess(), GetCurrentThread(), GetCurrentProcess(), &hThread, 0, FALSE, DUPLICATE_SAME_ACCESS);
s_AnimationThreadHandle = hThread;
@@ -235,7 +235,7 @@ static INT_PTR _AniAva_CreateAvatarWindowSync_Worker(WPARAM tszName, LPARAM) static HWND _AniAva_CreateAvatarWindowSync(wchar_t *szFileName)
{
- if (s_AnimationThreadHandle == 0 || s_AnimationThreadID == 0)
+ if (s_AnimationThreadHandle == nullptr || s_AnimationThreadID == 0)
return nullptr;
ANIAVA_SYNCCALLITEM item = { 0 };
|