diff options
author | George Hazan <george.hazan@gmail.com> | 2015-08-11 23:16:35 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-08-11 23:16:35 +0000 |
commit | c889a87ca723981a7105b2970da9d33a11b96e9d (patch) | |
tree | 927396037afc35ad31b11834cc839b041d93c632 /plugins/UserInfoEx/src/ctrl_tzcombo.cpp | |
parent | 0afd3fae06d577b2f5a277597bd94d300b56e2b6 (diff) |
no more warnings in UInfoEx at all
git-svn-id: http://svn.miranda-ng.org/main/trunk@14920 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/UserInfoEx/src/ctrl_tzcombo.cpp')
-rw-r--r-- | plugins/UserInfoEx/src/ctrl_tzcombo.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/plugins/UserInfoEx/src/ctrl_tzcombo.cpp b/plugins/UserInfoEx/src/ctrl_tzcombo.cpp index 768f863a28..81922204ce 100644 --- a/plugins/UserInfoEx/src/ctrl_tzcombo.cpp +++ b/plugins/UserInfoEx/src/ctrl_tzcombo.cpp @@ -173,10 +173,10 @@ void CTzCombo::OnApply(MCONTACT hContact, LPCSTR pszProto) //use new core tz interface
TimeZone_StoreListResult(hContact, NULL, _hwnd, TZF_PLF_CB);
if (!hContact) {
- _Flags.B.hasCustom = 0;
- _Flags.B.hasProto = 1;
+ _Flags.B.hasCustom = false;
+ _Flags.B.hasProto = true;
}
- _Flags.B.hasChanged = 0;
+ _Flags.B.hasChanged = false;
}
if (_Flags.B.hasChanged)
@@ -185,7 +185,7 @@ void CTzCombo::OnApply(MCONTACT hContact, LPCSTR pszProto) db_unset(hContact, USERINFO, SET_CONTACT_TIMEZONEINDEX);
db_unset(hContact, pszModule, SET_CONTACT_TIMEZONE);
- _Flags.B.hasChanged = 0;
+ _Flags.B.hasChanged = false;
OnInfoChanged(hContact, pszProto);
}
InvalidateRect(_hwnd, NULL, TRUE);
@@ -204,8 +204,7 @@ void CTzCombo::OnChangedByUser(WORD wChangedMsg) if (_curSel != c) {
if (!_Flags.B.hasChanged) {
- _Flags.B.hasChanged = 1;
- _Flags.B.hasCustom = 1;
+ _Flags.B.hasChanged = _Flags.B.hasCustom = true;
SendMessage(GetParent(GetParent(_hwnd)), PSM_CHANGED, 0, 0);
}
_curSel = c;
|