summaryrefslogtreecommitdiff
path: root/src/modules/options
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2014-11-13 20:02:40 +0000
committerKirill Volinsky <mataes2007@gmail.com>2014-11-13 20:02:40 +0000
commitca9e826e27ec51c2cff31545204bb462cdd9fb63 (patch)
treecae073a63e0373c7d22f165b9f2e33d3ef018b07 /src/modules/options
parent71caeef7aa7f9be45ade54549f21be95864268e7 (diff)
not needed NULL checks
git-svn-id: http://svn.miranda-ng.org/main/trunk@10984 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/options')
-rw-r--r--src/modules/options/headerbar.cpp2
-rw-r--r--src/modules/options/iconheader.cpp1
2 files changed, 0 insertions, 3 deletions
diff --git a/src/modules/options/headerbar.cpp b/src/modules/options/headerbar.cpp
index f3d19c8bdc..c643a4732d 100644
--- a/src/modules/options/headerbar.cpp
+++ b/src/modules/options/headerbar.cpp
@@ -290,8 +290,6 @@ static LRESULT CALLBACK MHeaderbarWndProc(HWND hwndDlg, UINT msg, WPARAM wParam
switch(msg) {
case WM_NCCREATE:
itc = new MHeaderbarCtrl; //(MHeaderbarCtrl*)mir_alloc(sizeof(MHeaderbarCtrl));
- if (itc == NULL)
- return FALSE;
SetWindowLongPtr(hwndDlg, 0, (LONG_PTR)itc);
MHeaderbar_SetupColors(itc);
diff --git a/src/modules/options/iconheader.cpp b/src/modules/options/iconheader.cpp
index d9d6f9deb6..2d58d47f16 100644
--- a/src/modules/options/iconheader.cpp
+++ b/src/modules/options/iconheader.cpp
@@ -323,7 +323,6 @@ static LRESULT CALLBACK MIcoTabWndProc(HWND hwndDlg, UINT msg, WPARAM wParam, L
switch(msg) {
case WM_NCCREATE:
itc = new MIcoTabCtrl; //(MIcoTabCtrl*)mir_alloc(sizeof(MIcoTabCtrl));
- if (itc == NULL) return FALSE;
itc->nSelectedIdx = -1;
itc->nHotIdx = -1;
itc->bMouseInside = FALSE;