summaryrefslogtreecommitdiff
path: root/plugins/FTPFileYM/src/dbentry.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-12-05 10:33:01 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-12-05 10:33:01 +0000
commita24b86d275a37bde42ae74ec12c235e4fe6b0d60 (patch)
treedc195697c83eee24a29ce24806786faeba872b6d /plugins/FTPFileYM/src/dbentry.cpp
parente5483a07e282dbc6be8ee498ff6ce676ee0ce2ed (diff)
- removed useless array for icons handle;
- removed unused stubs for the database functions git-svn-id: http://svn.miranda-ng.org/main/trunk@2651 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/FTPFileYM/src/dbentry.cpp')
-rw-r--r--plugins/FTPFileYM/src/dbentry.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/FTPFileYM/src/dbentry.cpp b/plugins/FTPFileYM/src/dbentry.cpp
index bb43e120a8..4d23aa323b 100644
--- a/plugins/FTPFileYM/src/dbentry.cpp
+++ b/plugins/FTPFileYM/src/dbentry.cpp
@@ -41,7 +41,7 @@ DBEntry *DBEntry::getFirts()
DBEntry *DBEntry::getNext(DBEntry *entry)
{
char szValue[256];
- int count = DB::getDword(0, MODULE_FILES, "NextFileID", 0);
+ int count = db_get_dw(0, MODULE_FILES, "NextFileID", 0);
for (; entryID < count; entryID++)
{
@@ -80,7 +80,7 @@ void DBEntry::cleanupDB()
entry = getNext(entry);
}
- DB::setDword(0, MODULE_FILES, "NextFileID", count);
+ db_set_dw(0, MODULE_FILES, "NextFileID", count);
}
DBEntry *DBEntry::get(int fileID)
@@ -136,7 +136,7 @@ void DBEntry::add(GenericJob *job)
return;
Lock *lock = new Lock(mutexDB);
- int id = DB::getDword(0, MODULE_FILES, "NextFileID", 0);
+ int id = db_get_dw(0, MODULE_FILES, "NextFileID", 0);
DB::setByteF(0, MODULE_FILES, "Ftp%d", id, job->iFtpNum);
DB::setAStringF(0, MODULE_FILES, "Filename%d", id, job->szSafeFileName);
@@ -147,7 +147,7 @@ void DBEntry::add(GenericJob *job)
DB::setDwordF(0, MODULE_FILES, "DeleteTS%d", id, deleteTS);
}
- DB::setDword(0, MODULE_FILES, "NextFileID", id + 1);
+ db_set_dw(0, MODULE_FILES, "NextFileID", id + 1);
job->fileID = id;
delete lock;