[CODE_ENHANCEMENT] Init some uninitialized vars.
This commit is contained in:
parent
084d3c60a8
commit
c123fd1a01
@ -61,7 +61,7 @@ notepad++ [--help] [-multiInst] [-noPlugin] [-lLanguage] [-LlangCode] [-nLineNum
|
||||
|
||||
class Notepad_plus_Window : public Window {
|
||||
public:
|
||||
Notepad_plus_Window() {};
|
||||
Notepad_plus_Window() : _isPrelaunch(false), _disablePluginsManager(false) {};
|
||||
void init(HINSTANCE, HWND, const TCHAR *cmdLine, CmdLineParams *cmdLineParams);
|
||||
|
||||
bool isDlgsMsg(MSG *msg) const;
|
||||
|
@ -1489,10 +1489,10 @@ LRESULT Notepad_plus::process(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lPa
|
||||
}
|
||||
else
|
||||
{
|
||||
SCNotification scnN;
|
||||
scnN.nmhdr.code = NPPN_BEFORESHUTDOWN;
|
||||
scnN.nmhdr.hwndFrom = _pPublicInterface->getHSelf();
|
||||
scnN.nmhdr.idFrom = 0;
|
||||
SCNotification scnN;
|
||||
scnN.nmhdr.code = NPPN_BEFORESHUTDOWN;
|
||||
scnN.nmhdr.hwndFrom = _pPublicInterface->getHSelf();
|
||||
scnN.nmhdr.idFrom = 0;
|
||||
_pluginsManager.notify(&scnN);
|
||||
|
||||
if (_pTrayIco)
|
||||
@ -1522,7 +1522,7 @@ LRESULT Notepad_plus::process(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lPa
|
||||
if (!allClosed)
|
||||
{
|
||||
//User cancelled the shutdown
|
||||
scnN.nmhdr.code = NPPN_CANCELSHUTDOWN;
|
||||
scnN.nmhdr.code = NPPN_CANCELSHUTDOWN;
|
||||
_pluginsManager.notify(&scnN);
|
||||
|
||||
return FALSE;
|
||||
|
@ -207,7 +207,7 @@ struct CmdLineParams {
|
||||
|
||||
CmdLineParams() : _isNoPlugin(false), _isReadOnly(false), _isNoSession(false), _isNoTab(false),_showLoadingTime(false),\
|
||||
_isPreLaunch(false), _line2go(-1), _column2go(-1), _langType(L_EXTERNAL), _isPointXValid(false), _isPointYValid(false),\
|
||||
_localizationPath(TEXT("")), _easterEggName(TEXT("")), _quoteType(0)
|
||||
_alwaysOnTop(false), _localizationPath(TEXT("")), _easterEggName(TEXT("")), _quoteType(0)
|
||||
{
|
||||
_point.x = 0;
|
||||
_point.y = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user