summaryrefslogtreecommitdiff
path: root/plugins/SendScreenshotPlus
diff options
context:
space:
mode:
authorGoraf <22941576+Goraf@users.noreply.github.com>2018-02-24 15:32:06 +0100
committerGoraf <22941576+Goraf@users.noreply.github.com>2018-02-24 18:20:46 +0100
commit1c0172cca4f1e90679321912e20436a7f42f122d (patch)
tree77a544d2c09332ec176f42ebcf58a40d9c5d2b93 /plugins/SendScreenshotPlus
parentdff565f40105b20b0e8e4dba1f48ccc9b8e7ff44 (diff)
more nullptr
Diffstat (limited to 'plugins/SendScreenshotPlus')
-rw-r--r--plugins/SendScreenshotPlus/src/CSend.h2
-rw-r--r--plugins/SendScreenshotPlus/src/UMainForm.h2
-rw-r--r--plugins/SendScreenshotPlus/src/Utils.h4
3 files changed, 4 insertions, 4 deletions
diff --git a/plugins/SendScreenshotPlus/src/CSend.h b/plugins/SendScreenshotPlus/src/CSend.h
index 534a96e7cc..15d92a5572 100644
--- a/plugins/SendScreenshotPlus/src/CSend.h
+++ b/plugins/SendScreenshotPlus/src/CSend.h
@@ -99,7 +99,7 @@ class CSend {
wchar_t* m_ErrorMsg;
wchar_t* m_ErrorTitle;
- void Unhook(){if(m_hOnSend) {UnhookEvent(m_hOnSend);m_hOnSend = NULL;}}
+ void Unhook(){if(m_hOnSend) {UnhookEvent(m_hOnSend);m_hOnSend = nullptr;}}
void DB_EventAdd(WORD EventType);
static INT_PTR CALLBACK ResultDialogProc(HWND hwndDlg,UINT uMsg,WPARAM wParam,LPARAM lParam);
diff --git a/plugins/SendScreenshotPlus/src/UMainForm.h b/plugins/SendScreenshotPlus/src/UMainForm.h
index 3a0a7435bd..995a56b4dd 100644
--- a/plugins/SendScreenshotPlus/src/UMainForm.h
+++ b/plugins/SendScreenshotPlus/src/UMainForm.h
@@ -87,7 +87,7 @@ public:
void Close(){ SendMessage(m_hWnd, WM_CLOSE, 0, 0); }
void Show(){ ShowWindow(m_hWnd, SW_SHOW); }
void Hide(){ ShowWindow(m_hWnd, SW_HIDE); }
- void SetTargetWindow(HWND hwnd = NULL);
+ void SetTargetWindow(HWND hwnd = nullptr);
void btnCaptureClick();
void cboxSendByChange(void *param);
diff --git a/plugins/SendScreenshotPlus/src/Utils.h b/plugins/SendScreenshotPlus/src/Utils.h
index bd2d38f240..7d5f051ff9 100644
--- a/plugins/SendScreenshotPlus/src/Utils.h
+++ b/plugins/SendScreenshotPlus/src/Utils.h
@@ -49,7 +49,7 @@ int ComboBox_SelectItemData(HWND hwndCtl, LPARAM data);
size_t MonitorInfoEnum(MONITORINFOEX* &myMonitors, RECT &virtualScreen);
FIBITMAP* CaptureWindow(HWND hCapture, BOOL bClientArea, BOOL bIndirectCapture);
-FIBITMAP* CaptureMonitor(const wchar_t *pwszDevice, const RECT *cropRect = NULL);
+FIBITMAP* CaptureMonitor(const wchar_t *pwszDevice, const RECT *cropRect = nullptr);
char* GetFileNameA(const wchar_t *pwszPath);
@@ -64,7 +64,7 @@ class EventHandle
{
HANDLE _hEvent;
public:
- inline EventHandle() { _hEvent = CreateEvent(NULL, 0, 0, NULL); }
+ inline EventHandle() { _hEvent = CreateEvent(nullptr, 0, 0, nullptr); }
inline ~EventHandle() { CloseHandle(_hEvent); }
inline void Set() { SetEvent(_hEvent); }
inline void Wait() { WaitForSingleObject(_hEvent, INFINITE); }