summaryrefslogtreecommitdiff
path: root/plugins/NotesAndReminders/src/notes.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/NotesAndReminders/src/notes.cpp')
-rw-r--r--plugins/NotesAndReminders/src/notes.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/NotesAndReminders/src/notes.cpp b/plugins/NotesAndReminders/src/notes.cpp
index 58e809738e..d54b8ea03b 100644
--- a/plugins/NotesAndReminders/src/notes.cpp
+++ b/plugins/NotesAndReminders/src/notes.cpp
@@ -375,7 +375,7 @@ void LoadNotes(BOOL bIsStartup)
g_Stickies = NULL;
- NotesCount = ReadSettingInt(0,MODULENAME,"NotesData",0);
+ NotesCount = db_get_dw(0,MODULENAME,"NotesData",0);
for (I = 0; I < NotesCount; I++)
{
@@ -691,7 +691,7 @@ void PurgeNotes(void)
int NotesCount, I;
char ValueName[16];
- NotesCount = ReadSettingInt(0,MODULENAME,"NotesData",0);
+ NotesCount = db_get_dw(0,MODULENAME,"NotesData",0);
for(I = 0; I < NotesCount; I++)
{
sprintf(ValueName, "NotesData%d", I);
@@ -721,7 +721,7 @@ void OnDeleteNote(HWND hdlg, STICKYNOTE *SN)
void DeleteNotes(void)
{
PurgeNotes();
- WriteSettingInt(0, MODULENAME, "NotesData", 0);
+ db_set_dw(0, MODULENAME, "NotesData", 0);
PurgeNotesTree();
NOTIFY_LIST();
}
@@ -824,9 +824,9 @@ static void JustSaveNotesEx(STICKYNOTE *pModified)
int scrollV;
char *tData, *Value;
- const int OldNotesCount = ReadSettingInt(0, MODULENAME, "NotesData", 0);
+ const int OldNotesCount = db_get_dw(0, MODULENAME, "NotesData", 0);
- WriteSettingInt(0, MODULENAME, "NotesData", NotesCount);
+ db_set_dw(0, MODULENAME, "NotesData", NotesCount);
for (TTE = g_Stickies, I = 0; TTE; TTE = (TREEELEMENT*)TTE->next, I++)
{