remove ToString() and ToWString() returning C strings as they aren't used anyway
This commit is contained in:
@@ -641,7 +641,7 @@ Window * Window::EmptyClone() const
|
|||||||
return new Window(GetStartX(),GetStartY(),GetWidth(),GetHeight(),itsTitle,itsBaseColor,itsBorder);
|
return new Window(GetStartX(),GetStartY(),GetWidth(),GetHeight(),itsTitle,itsBaseColor,itsBorder);
|
||||||
}
|
}
|
||||||
|
|
||||||
char * ToString(const wchar_t *ws)
|
/*char * ToString(const wchar_t *ws)
|
||||||
{
|
{
|
||||||
string s;
|
string s;
|
||||||
for (int i = 0; i < wcslen(ws); i++)
|
for (int i = 0; i < wcslen(ws); i++)
|
||||||
@@ -660,7 +660,7 @@ wchar_t * ToWString(const char *s)
|
|||||||
wchar_t *ws = new wchar_t[strlen(s)+1]();
|
wchar_t *ws = new wchar_t[strlen(s)+1]();
|
||||||
mbstowcs(ws, s, strlen(s));
|
mbstowcs(ws, s, strlen(s));
|
||||||
return ws;
|
return ws;
|
||||||
}
|
}*/
|
||||||
|
|
||||||
string ToString(const wstring &ws)
|
string ToString(const wstring &ws)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -51,8 +51,8 @@ typedef void (*GetStringHelper)();
|
|||||||
typedef std::pair<Color, Color> ColorPair;
|
typedef std::pair<Color, Color> ColorPair;
|
||||||
typedef std::pair<int, int> Coordinates;
|
typedef std::pair<int, int> Coordinates;
|
||||||
|
|
||||||
char * ToString(const wchar_t *);
|
//char * ToString(const wchar_t *);
|
||||||
wchar_t * ToWString(const char *);
|
//wchar_t * ToWString(const char *);
|
||||||
string ToString(const wstring &);
|
string ToString(const wstring &);
|
||||||
wstring ToWString(const string &);
|
wstring ToWString(const string &);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user