summaryrefslogtreecommitdiff
path: root/plugins/Dbx_kyoto/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2016-07-25 10:31:04 +0000
committerGeorge Hazan <george.hazan@gmail.com>2016-07-25 10:31:04 +0000
commit8ae3679aa1339ce9abee53adb69902bd6b7513dc (patch)
tree94ef8927e12043ed6dcc15e1e640d68a8add520e /plugins/Dbx_kyoto/src
parent1e273e28d89b5838e3d0f0cafac9676577cb71ce (diff)
hello, Unix.
phase 1: removing _T() git-svn-id: http://svn.miranda-ng.org/main/trunk@17127 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Dbx_kyoto/src')
-rw-r--r--plugins/Dbx_kyoto/src/dbintf.cpp16
-rw-r--r--plugins/Dbx_kyoto/src/dbmodulechain.cpp4
-rw-r--r--plugins/Dbx_kyoto/src/init.cpp2
3 files changed, 11 insertions, 11 deletions
diff --git a/plugins/Dbx_kyoto/src/dbintf.cpp b/plugins/Dbx_kyoto/src/dbintf.cpp
index ea51b273b0..95fd42998c 100644
--- a/plugins/Dbx_kyoto/src/dbintf.cpp
+++ b/plugins/Dbx_kyoto/src/dbintf.cpp
@@ -23,7 +23,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include "commonheaders.h"
-#define DBHEADER_SIGNATURE _T("KyotoCabinet")
+#define DBHEADER_SIGNATURE L"KyotoCabinet"
#define CMP_UINT32(A,B) if(A!=B) return (A<B)?-1:1;
@@ -158,16 +158,16 @@ int CDbxKyoto::Load(bool bSkipInit)
if (_taccess(m_tszProfileName, 0) == 0) {
TCHAR buf[100];
- if (0 == GetPrivateProfileString(_T("Database"), _T("Signature"), _T(""), buf, SIZEOF(buf), m_tszProfileName))
+ if (0 == GetPrivateProfileString(L"Database", L"Signature", L"", buf, SIZEOF(buf), m_tszProfileName))
return EGROKPRF_CANTREAD;
if (_tcscmp(buf, DBHEADER_SIGNATURE))
return EGROKPRF_DAMAGED;
- m_dwVersion = GetPrivateProfileInt(_T("Database"), _T("Version"), 1, m_tszProfileName);
+ m_dwVersion = GetPrivateProfileInt(L"Database", L"Version", 1, m_tszProfileName);
}
else {
- WritePrivateProfileString(_T("Database"), _T("Version"), _T("1"), m_tszProfileName);
- WritePrivateProfileString(_T("Database"), _T("Signature"), DBHEADER_SIGNATURE, m_tszProfileName);
+ WritePrivateProfileString(L"Database", L"Version", L"1", m_tszProfileName);
+ WritePrivateProfileString(L"Database", L"Signature", DBHEADER_SIGNATURE, m_tszProfileName);
DWORD keyVal = 0;
DBContact dbc = { DBCONTACT_SIGNATURE, 0, 0, 0 };
@@ -202,8 +202,8 @@ int CDbxKyoto::Load(bool bSkipInit)
int CDbxKyoto::Create(void)
{
- WritePrivateProfileString(_T("Database"), _T("Version"), _T("1"), m_tszProfileName);
- WritePrivateProfileString(_T("Database"), _T("Signature"), DBHEADER_SIGNATURE, m_tszProfileName);
+ WritePrivateProfileString(L"Database", L"Version", L"1", m_tszProfileName);
+ WritePrivateProfileString(L"Database", L"Signature", DBHEADER_SIGNATURE, m_tszProfileName);
return 0;
}
@@ -213,7 +213,7 @@ int CDbxKyoto::Check(void)
return EGROKPRF_CANTREAD;
TCHAR buf[100];
- if (0 == GetPrivateProfileString(_T("Database"), _T("Signature"), _T(""), buf, SIZEOF(buf), m_tszProfileName))
+ if (0 == GetPrivateProfileString(L"Database", L"Signature", L"", buf, SIZEOF(buf), m_tszProfileName))
return EGROKPRF_UNKHEADER;
if (_tcscmp(buf, DBHEADER_SIGNATURE))
return EGROKPRF_UNKHEADER;
diff --git a/plugins/Dbx_kyoto/src/dbmodulechain.cpp b/plugins/Dbx_kyoto/src/dbmodulechain.cpp
index ae0cd9e318..bd2e0fdc80 100644
--- a/plugins/Dbx_kyoto/src/dbmodulechain.cpp
+++ b/plugins/Dbx_kyoto/src/dbmodulechain.cpp
@@ -30,11 +30,11 @@ void CDbxKyoto::AddToList(char *name, DWORD ofs)
mn->ofs = ofs;
if (m_lMods.getIndex(mn) != -1)
- DatabaseCorruption(_T("%s (Module Name not unique)"));
+ DatabaseCorruption(L"%s (Module Name not unique)");
m_lMods.insert(mn);
if (m_lOfs.getIndex(mn) != -1)
- DatabaseCorruption(_T("%s (Module Offset not unique)"));
+ DatabaseCorruption(L"%s (Module Offset not unique)");
m_lOfs.insert(mn);
}
diff --git a/plugins/Dbx_kyoto/src/init.cpp b/plugins/Dbx_kyoto/src/init.cpp
index 02bd455228..96b1776e82 100644
--- a/plugins/Dbx_kyoto/src/init.cpp
+++ b/plugins/Dbx_kyoto/src/init.cpp
@@ -99,7 +99,7 @@ static DATABASELINK dblink =
{
sizeof(DATABASELINK),
"dbx_kyoto",
- _T("KyotoCabinet database driver"),
+ L"KyotoCabinet database driver",
makeDatabase,
grokHeader,
LoadDatabase,