diff options
author | George Hazan <george.hazan@gmail.com> | 2016-09-13 17:11:58 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2016-09-13 17:11:58 +0000 |
commit | f51995e13679a37851baef8e7f52f2d993cbc7c1 (patch) | |
tree | 25ccd03cf2dc4b897cc0dc6fcbe4cc78ddb122c7 /plugins/Utils.pas/dbsettings.pas | |
parent | fe1e8456d2488095f409a4f2d38b7251abdedccf (diff) |
mode old database junk to die
git-svn-id: http://svn.miranda-ng.org/main/trunk@17291 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Utils.pas/dbsettings.pas')
-rw-r--r-- | plugins/Utils.pas/dbsettings.pas | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/Utils.pas/dbsettings.pas b/plugins/Utils.pas/dbsettings.pas index 8106fd7e66..df2b28aa22 100644 --- a/plugins/Utils.pas/dbsettings.pas +++ b/plugins/Utils.pas/dbsettings.pas @@ -32,7 +32,7 @@ function DBWriteString (hContact:TMCONTACT;szModule:PAnsiChar;szSetting:PAnsiCha function DBWriteUTF8 (hContact:TMCONTACT;szModule:PAnsiChar;szSetting:PAnsiChar;val:PAnsiChar):int_ptr;
function DBWriteUnicode(hContact:TMCONTACT;szModule:PAnsiChar;szSetting:PAnsiChar;val:PWideChar):int_ptr;
-//function DBFreeVariant(dbv:PDBVARIANT):int_ptr;
+//function db_free(dbv:PDBVARIANT):int_ptr;
function DBDeleteSetting(hContact:TMCONTACT;szModule:PAnsiChar;szSetting:PAnsiChar):int_ptr;
function DBDeleteGroup(hContact:TMCONTACT;szModule:PAnsiChar;prefix:PAnsiChar=nil):int_ptr;
@@ -87,7 +87,7 @@ begin else
result:=StrLen(dbv.szVal.a);
- DBFreeVariant(@dbv);
+ db_free(@dbv);
end;
function DBReadString(hContact:TMCONTACT;szModule:PAnsiChar;szSetting:PAnsiChar;
@@ -106,7 +106,7 @@ begin else
StrDup(result,default);
- DBFreeVariant(@dbv);
+ db_free(@dbv);
end;
function DBReadUTF8(hContact:TMCONTACT;szModule:PAnsiChar;szSetting:PAnsiChar;default:PAnsiChar=nil):PAnsiChar;
@@ -130,7 +130,7 @@ begin else
StrDupW(result,default);
- DBFreeVariant(@dbv);
+ db_free(@dbv);
end;
function DBReadStruct(hContact:TMCONTACT;szModule:PAnsiChar;szSetting:PAnsiChar;
@@ -147,7 +147,7 @@ begin if ptr=nil then
mGetMem(ptr,size);
move(dbv.pbVal^,ptr^,size);
- DBFreeVariant(@dbv);
+ db_free(@dbv);
result:=uint_ptr(ptr)
end
else
@@ -328,7 +328,7 @@ begin if DBReadSetting(hContact,szModule,szSetting,@ldbv)=0 then
begin
result:=ldbv._type;
- DBFreeVariant(@ldbv);
+ db_free(@ldbv);
end
else
result:=DBVT_DELETED;
|