From 27787fa062bb3ad411fd2c2cec9963c24cefaccd Mon Sep 17 00:00:00 2001 From: Don Ho Date: Mon, 14 Sep 2015 23:52:48 +0200 Subject: [PATCH] Remove bad asserts. Remove 2 incorrect asserts. Add 1 correct assert. --- .../src/WinControls/DockingWnd/DockingDlgInterface.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/PowerEditor/src/WinControls/DockingWnd/DockingDlgInterface.h b/PowerEditor/src/WinControls/DockingWnd/DockingDlgInterface.h index ff1922067..230a24ced 100644 --- a/PowerEditor/src/WinControls/DockingWnd/DockingDlgInterface.h +++ b/PowerEditor/src/WinControls/DockingWnd/DockingDlgInterface.h @@ -63,15 +63,14 @@ public: void create(tTbData * data, bool isRTL = false) { + assert(data != nullptr); StaticDialog::create(_dlgID, isRTL); TCHAR temp[MAX_PATH]; ::GetWindowText(_hSelf, temp, MAX_PATH); _pluginName = temp; - // user information - assert(data->hClient != nullptr); - data->hClient = _hSelf; - assert(data->pszName != nullptr); + // user information + data->hClient = _hSelf; data->pszName = (TCHAR *)_pluginName.c_str(); // supported features by plugin