Fixed an encoding issue occurring on Windows when Qt is compiled without STL compatibility

This commit is contained in:
Olivier Teulière 2010-01-04 20:19:34 +00:00
parent e62cea7210
commit 5e3a3b4ceb

View file

@ -43,7 +43,7 @@
// Convert to/from std::wstring
#ifdef QT_NO_STL
# include "encoding.h"
# define qfw(s) qfl(convertToMb(s).c_str())
# define qfw(s) QString::fromWCharArray(wstring(s).c_str())
# define qtw(s) convertToWc(qtl(s))
#else
# define qfw(s) QString::fromStdWString(s)