summaryrefslogtreecommitdiff
path: root/plugins/Dbx_kyoto/src/dbintf.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Dbx_kyoto/src/dbintf.cpp')
-rw-r--r--plugins/Dbx_kyoto/src/dbintf.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/plugins/Dbx_kyoto/src/dbintf.cpp b/plugins/Dbx_kyoto/src/dbintf.cpp
index c6ed23d54f..ea51b273b0 100644
--- a/plugins/Dbx_kyoto/src/dbintf.cpp
+++ b/plugins/Dbx_kyoto/src/dbintf.cpp
@@ -30,21 +30,21 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
struct SettingsComparator : public Comparator
{
SettingsComparator() {}
- virtual int32_t compare(const char *akbuf, size_t, const char *bkbuf, size_t)
- {
+ virtual int32_t compare(const char *akbuf, size_t, const char *bkbuf, size_t)
+ {
DBSettingSortingKey *k1 = (DBSettingSortingKey*)akbuf, *k2 = (DBSettingSortingKey*)bkbuf;
CMP_UINT32(k1->dwContactID, k2->dwContactID);
CMP_UINT32(k1->dwOfsModule, k2->dwOfsModule);
return strcmp(k1->szSettingName, k2->szSettingName);
- }
+ }
}
static _settingsComparator;
struct EventsComparator : public Comparator
{
EventsComparator() {}
- virtual int32_t compare(const char *akbuf, size_t, const char *bkbuf, size_t)
- {
+ virtual int32_t compare(const char *akbuf, size_t, const char *bkbuf, size_t)
+ {
DBEventSortingKey *k1 = (DBEventSortingKey*)akbuf, *k2 = (DBEventSortingKey*)bkbuf;
CMP_UINT32(k1->dwContactId, k2->dwContactId);
CMP_UINT32(k1->ts, k2->ts);
@@ -57,11 +57,11 @@ static _eventsComparator;
struct LongComparator : public Comparator
{
LongComparator() {}
- virtual int32_t compare(const char *akbuf, size_t, const char *bkbuf, size_t)
+ virtual int32_t compare(const char *akbuf, size_t, const char *bkbuf, size_t)
{
return *(LONG*)akbuf - *(LONG*)bkbuf;
- }
-}
+ }
+}
static _longComparator;
static int ModCompare(const ModuleName *mn1, const ModuleName *mn2)
@@ -91,7 +91,7 @@ CDbxKyoto::CDbxKyoto(const TCHAR *tszFileName, int iMode) :
m_tszProfileName = mir_tstrdup(tszFileName);
InitDbInstance(this);
- m_codePage = CallService(MS_LANGPACK_GETCODEPAGE, 0, 0);
+ m_codePage = Langpack_GetDefaultCodePage();
m_hModHeap = HeapCreate(0, 0, 0);
}