Cleaning up unicode conversion

This commit is contained in:
kaetemi 2019-05-01 11:42:53 +08:00
parent a249fcbab3
commit aa8f17671a

View file

@ -357,6 +357,9 @@ inline tstring mbcsToTStr(const std::string &str) { return (const tstring &)str;
#define nlMbcsToTStr(str) ((const tchar *)NLMISC::asCStr(str))
#endif
inline const tchar* asCStr(const tchar *str) { return str; }
inline const tchar* asCStr(const tstring &str) { return str.c_str(); }
} // NLMISC
#endif // NL_STRING_COMMON_H