mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-25 23:05:13 +02:00
Remove bad asserts.
Remove 2 incorrect asserts. Add 1 correct assert.
This commit is contained in:
parent
ae324bd97e
commit
27787fa062
@ -63,15 +63,14 @@ public:
|
|||||||
|
|
||||||
void create(tTbData * data, bool isRTL = false)
|
void create(tTbData * data, bool isRTL = false)
|
||||||
{
|
{
|
||||||
|
assert(data != nullptr);
|
||||||
StaticDialog::create(_dlgID, isRTL);
|
StaticDialog::create(_dlgID, isRTL);
|
||||||
TCHAR temp[MAX_PATH];
|
TCHAR temp[MAX_PATH];
|
||||||
::GetWindowText(_hSelf, temp, MAX_PATH);
|
::GetWindowText(_hSelf, temp, MAX_PATH);
|
||||||
_pluginName = temp;
|
_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();
|
data->pszName = (TCHAR *)_pluginName.c_str();
|
||||||
|
|
||||||
// supported features by plugin
|
// supported features by plugin
|
||||||
|
Loading…
x
Reference in New Issue
Block a user