From 037286255b6a26ed5fba94c5fe9e68b88c1755f7 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 23 Jun 2013 21:56:20 +0000 Subject: unifoex moved to the standard db_* functions git-svn-id: http://svn.miranda-ng.org/main/trunk@5103 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/UserInfoEx/src/ctrl_tzcombo.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'plugins/UserInfoEx/src/ctrl_tzcombo.cpp') diff --git a/plugins/UserInfoEx/src/ctrl_tzcombo.cpp b/plugins/UserInfoEx/src/ctrl_tzcombo.cpp index ee20dd2bbd..76152e13c4 100644 --- a/plugins/UserInfoEx/src/ctrl_tzcombo.cpp +++ b/plugins/UserInfoEx/src/ctrl_tzcombo.cpp @@ -217,8 +217,8 @@ void CTzCombo::OnApply(HANDLE hContact, LPCSTR pszProto) else { const CTimeZone* pTimeZone = (CTimeZone*)ComboBox_GetItemData(_hwnd, _curSel); if (PtrIsValid(pTimeZone)) { - DB::Setting::WriteTString(hContact, USERINFO, SET_CONTACT_TIMEZONENAME, pTimeZone->ptszName); - DB::Setting::WriteByte(hContact, pszModule, SET_CONTACT_TIMEZONE, pTimeZone->ToMirandaTimezone()); + db_set_ts(hContact, USERINFO, SET_CONTACT_TIMEZONENAME, pTimeZone->ptszName); + db_set_b(hContact, pszModule, SET_CONTACT_TIMEZONE, pTimeZone->ToMirandaTimezone()); if (!hContact) { _Flags.B.hasCustom = 0; @@ -231,9 +231,9 @@ void CTzCombo::OnApply(HANDLE hContact, LPCSTR pszProto) if (_Flags.B.hasChanged) { - DB::Setting::Delete(hContact, USERINFO, SET_CONTACT_TIMEZONENAME); - DB::Setting::Delete(hContact, USERINFO, SET_CONTACT_TIMEZONEINDEX); - DB::Setting::Delete(hContact, pszModule, SET_CONTACT_TIMEZONE); + db_unset(hContact, USERINFO, SET_CONTACT_TIMEZONENAME); + db_unset(hContact, USERINFO, SET_CONTACT_TIMEZONEINDEX); + db_unset(hContact, pszModule, SET_CONTACT_TIMEZONE); _Flags.B.hasChanged = 0; OnInfoChanged(hContact, pszProto); -- cgit v1.2.3