Skip to content

Commit 05d7b14

Browse files
author
m.noltmeer@gmail.com
committed
changed return value of TLocalisation::LocaliseText() to String
1 parent b416c0b commit 05d7b14

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

UsingLocalisation.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,10 @@ int TLocalisation::OpenLocaleFile(const String &path)
9494
}
9595
//---------------------------------------------------------------------------
9696

97-
wchar_t *TLocalisation::LocaliseText(const String &mark)
97+
String TLocalisation::LocaliseText(const String &mark)
9898
{
9999
if (DllHandle)
100-
return Localise(mark.c_str());
100+
return String(Localise(mark.c_str()));
101101
else
102102
return NULL;
103103
}

UsingLocalisation.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class TLocalisation
3737
static HINSTANCE LoadLib(const String &dll_path);
3838
static int FreeLib();
3939
static int OpenLocaleFile(const String &path);
40-
static wchar_t *LocaliseText(const String &mark);
40+
static String LocaliseText(const String &mark);
4141
static const wchar_t *GetLastError();
4242
};
4343
//---------------------------------------------------------------------------

0 commit comments

Comments
 (0)