diff options
author | George Hazan <ghazan@miranda.im> | 2019-07-26 20:02:16 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-07-26 20:02:22 +0300 |
commit | 9374c8e701dcb61a46c89a854235d91a23bf672e (patch) | |
tree | ad366bc7f47da578fb33a57c32912689f5aadecb /include | |
parent | 3c5923d11431c515db57e4e972d53bf0443f1bcb (diff) |
warning fixes
Diffstat (limited to 'include')
-rw-r--r-- | include/m_gui.h | 2 | ||||
-rw-r--r-- | include/m_netlib.h | 2 | ||||
-rw-r--r-- | include/m_protoint.h | 8 |
3 files changed, 6 insertions, 6 deletions
diff --git a/include/m_gui.h b/include/m_gui.h index d611778a74..2636ccd0aa 100644 --- a/include/m_gui.h +++ b/include/m_gui.h @@ -1479,7 +1479,7 @@ public: protected:
PROTO_INTERFACE *m_proto_interface;
- HWND m_hwndStatus;
+ HWND m_hwndStatus = nullptr;
INT_PTR DlgProc(UINT msg, WPARAM wParam, LPARAM lParam) override;
diff --git a/include/m_netlib.h b/include/m_netlib.h index 046f502706..5225186f85 100644 --- a/include/m_netlib.h +++ b/include/m_netlib.h @@ -538,7 +538,7 @@ struct MIR_APP_EXPORT MHttpRequest : public NETLIBHTTPREQUEST, public MZeroedObj CMStringA m_szUrl;
CMStringA m_szParam;
- void *pUserInfo;
+ void *pUserInfo = nullptr;
void AddHeader(const char *szName, const char *szValue);
};
diff --git a/include/m_protoint.h b/include/m_protoint.h index 5a7df174cf..53a87d8f2b 100644 --- a/include/m_protoint.h +++ b/include/m_protoint.h @@ -67,7 +67,7 @@ struct MIR_APP_EXPORT PROTO_INTERFACE : public MZeroedObject {
protected:
- MWindowList m_hWindowList; // list of all windows which belong to this protocol's instance
+ MWindowList m_hWindowList = 0; // list of all windows which belong to this protocol's instance
public:
int m_iStatus; // current protocol status
@@ -76,9 +76,9 @@ public: int m_iVersion; // version 2 or higher designate support of Unicode services
wchar_t* m_tszUserName; // human readable protocol's name
char* m_szModuleName; // internal protocol name, also its database module name
- HANDLE m_hProtoIcon; // icon to be displayed in the account manager
- HNETLIBUSER m_hNetlibUser; // network agent
- HGENMENU m_hmiMainMenu; // if protocol menus are displayed in the main menu, this is the root
+ HANDLE m_hProtoIcon = 0; // icon to be displayed in the account manager
+ HNETLIBUSER m_hNetlibUser = 0; // network agent
+ HGENMENU m_hmiMainMenu = 0; // if protocol menus are displayed in the main menu, this is the root
HGENMENU m_hmiReqAuth; // a menu item for /RequestAuth service
HGENMENU m_hmiGrantAuth; // a menu item for /GrantAuth service
HGENMENU m_hmiRevokeAuth; // a menu item for /RevokeAuth service
|