summaryrefslogtreecommitdiff
path: root/plugins/NotesAndReminders/src/reminders.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-06-23 22:02:44 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-06-23 22:02:44 +0000
commit01b7a72d43ed1c71544c22c7afb61829762ffe8e (patch)
treeb4c570f41c69097492329b9d18a64f0b42f585ef /plugins/NotesAndReminders/src/reminders.cpp
parent037286255b6a26ed5fba94c5fe9e68b88c1755f7 (diff)
same for some another plugins
git-svn-id: http://svn.miranda-ng.org/main/trunk@5104 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/NotesAndReminders/src/reminders.cpp')
-rw-r--r--plugins/NotesAndReminders/src/reminders.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/NotesAndReminders/src/reminders.cpp b/plugins/NotesAndReminders/src/reminders.cpp
index 234aea3e6e..25c2772251 100644
--- a/plugins/NotesAndReminders/src/reminders.cpp
+++ b/plugins/NotesAndReminders/src/reminders.cpp
@@ -373,11 +373,11 @@ void PurgeReminders(void)
int ReminderCount,I;
char ValueName[32];
- ReminderCount = ReadSettingInt(0,MODULENAME,"RemindersData",0);
+ ReminderCount = db_get_dw(0,MODULENAME,"RemindersData",0);
for(I = 0;I < ReminderCount;I++)
{
sprintf(ValueName, "RemindersData%d", I);
- DeleteSetting(0,MODULENAME,ValueName);
+ db_unset(0, MODULENAME, ValueName);
}
}
@@ -390,11 +390,11 @@ void JustSaveReminders(void)
int ReminderCount;
REMINDERDATA *pReminder;
- const int OldReminderCount = ReadSettingInt(0, MODULENAME, "RemindersData", 0);
+ const int OldReminderCount = db_get_dw(0, MODULENAME, "RemindersData", 0);
ReminderCount = TreeGetCount(RemindersList);
- WriteSettingInt(0,MODULENAME, "RemindersData", ReminderCount);
+ db_set_dw(0,MODULENAME, "RemindersData", ReminderCount);
for (TTE = RemindersList, I = 0; TTE; TTE = (TREEELEMENT*)TTE->next, I++)
{
@@ -472,7 +472,7 @@ void LoadReminders(void)
BOOL GenerateUids = FALSE;
RemindersList = NULL;
- RemindersCount = ReadSettingInt(0, MODULENAME, "RemindersData", 0);
+ RemindersCount = db_get_dw(0, MODULENAME, "RemindersData", 0);
for (I = 0; I < RemindersCount; I++)
{
@@ -764,7 +764,7 @@ void SaveReminders(void)
void DeleteReminders(void)
{
PurgeReminders();
- WriteSettingInt(0,MODULENAME,"RemindersData",0);
+ db_set_dw(0,MODULENAME,"RemindersData",0);
PurgeReminderTree();
}