diff options
author | George Hazan <ghazan@miranda.im> | 2017-03-07 23:14:08 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-03-07 23:14:08 +0300 |
commit | 4dde6e6a9b6176050f31df13e91d248b5d7c62b2 (patch) | |
tree | f449a243e576cec7968efcca842a7c4db8b6bd85 /plugins/Scriver/src/chat/tools.cpp | |
parent | 0bc0ec3803c1d95798e551ec7c1d431d2ac98075 (diff) |
code cleaning
Diffstat (limited to 'plugins/Scriver/src/chat/tools.cpp')
-rw-r--r-- | plugins/Scriver/src/chat/tools.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/Scriver/src/chat/tools.cpp b/plugins/Scriver/src/chat/tools.cpp index 7b002430ff..148410d125 100644 --- a/plugins/Scriver/src/chat/tools.cpp +++ b/plugins/Scriver/src/chat/tools.cpp @@ -28,7 +28,7 @@ wchar_t* my_strstri(const wchar_t* s1, const wchar_t* s2) if (!s2[k + 1])
return (wchar_t*)(s1 + i);
- return NULL;
+ return nullptr;
}
UINT CreateGCMenu(HWND hwnd, HMENU *hMenu, int iIndex, POINT pt, SESSION_INFO *si, wchar_t* pszUID, wchar_t* pszWordText)
@@ -103,7 +103,7 @@ UINT CreateGCMenu(HWND hwnd, HMENU *hMenu, int iIndex, POINT pt, SESSION_INFO *s else if (gcmi.Item[i].uType == MENU_CHECK)
AppendMenu(*hMenu, dwState | MF_CHECKED | MF_STRING, gcmi.Item[i].dwID, ptszText);
}
- return TrackPopupMenu(*hMenu, TPM_RETURNCMD, pt.x, pt.y, 0, hwnd, NULL);
+ return TrackPopupMenu(*hMenu, TPM_RETURNCMD, pt.x, pt.y, 0, hwnd, nullptr);
}
void DestroyGCMenu(HMENU *hMenu, int iIndex)
@@ -113,7 +113,7 @@ void DestroyGCMenu(HMENU *hMenu, int iIndex) mii.fMask = MIIM_SUBMENU;
while(GetMenuItemInfo(*hMenu, iIndex, TRUE, &mii))
{
- if (mii.hSubMenu != NULL)
+ if (mii.hSubMenu != nullptr)
DestroyMenu(mii.hSubMenu);
RemoveMenu(*hMenu, iIndex, MF_BYPOSITION);
}
|