remove ToString() and ToWString() returning C strings as they aren't used anyway

This commit is contained in:
unK
2008-10-01 18:46:56 +02:00
parent aba3373da7
commit e6b7e22485
2 changed files with 4 additions and 4 deletions

View File

@@ -641,7 +641,7 @@ Window * Window::EmptyClone() const
return new Window(GetStartX(),GetStartY(),GetWidth(),GetHeight(),itsTitle,itsBaseColor,itsBorder);
}
char * ToString(const wchar_t *ws)
/*char * ToString(const wchar_t *ws)
{
string s;
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]();
mbstowcs(ws, s, strlen(s));
return ws;
}
}*/
string ToString(const wstring &ws)
{

View File

@@ -51,8 +51,8 @@ typedef void (*GetStringHelper)();
typedef std::pair<Color, Color> ColorPair;
typedef std::pair<int, int> Coordinates;
char * ToString(const wchar_t *);
wchar_t * ToWString(const char *);
//char * ToString(const wchar_t *);
//wchar_t * ToWString(const char *);
string ToString(const wstring &);
wstring ToWString(const string &);