diff options
author | George Hazan <ghazan@miranda.im> | 2020-01-27 14:47:20 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-01-27 14:47:20 +0300 |
commit | 38b76a7b31a991a4b7ec758f4cb7a872e3b5a994 (patch) | |
tree | 2dc7b98ccd4719dd032edc87c3dcc9aa9a821bd2 /src/mir_core | |
parent | 1456e68e9391dad5c101e940425770cda54ff5a3 (diff) |
minor code cleaning
Diffstat (limited to 'src/mir_core')
-rw-r--r-- | src/mir_core/src/windowlist.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mir_core/src/windowlist.cpp b/src/mir_core/src/windowlist.cpp index 8b5e9a87d9..350629bce2 100644 --- a/src/mir_core/src/windowlist.cpp +++ b/src/mir_core/src/windowlist.cpp @@ -87,7 +87,7 @@ MIR_CORE_DLL(HWND) WindowList_Find(MWindowList hList, UINT_PTR param) MIR_CORE_DLL(int) WindowList_Broadcast(MWindowList hList, UINT message, WPARAM wParam, LPARAM lParam)
{
if (hList == nullptr)
- return NULL;
+ return 0;
for (auto &it : hList->rev_iter())
SendMessage(it->hWnd, message, wParam, lParam);
@@ -97,7 +97,7 @@ MIR_CORE_DLL(int) WindowList_Broadcast(MWindowList hList, UINT message, WPARAM w MIR_CORE_DLL(int) WindowList_BroadcastAsync(MWindowList hList, UINT message, WPARAM wParam, LPARAM lParam)
{
if (hList == nullptr)
- return NULL;
+ return 0;
for (auto &it : hList->rev_iter())
PostMessage(it->hWnd, message, wParam, lParam);
|