Cleaning up unicode conversion
This commit is contained in:
parent
a249fcbab3
commit
aa8f17671a
1 changed files with 3 additions and 0 deletions
|
@ -357,6 +357,9 @@ inline tstring mbcsToTStr(const std::string &str) { return (const tstring &)str;
|
||||||
#define nlMbcsToTStr(str) ((const tchar *)NLMISC::asCStr(str))
|
#define nlMbcsToTStr(str) ((const tchar *)NLMISC::asCStr(str))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
inline const tchar* asCStr(const tchar *str) { return str; }
|
||||||
|
inline const tchar* asCStr(const tstring &str) { return str.c_str(); }
|
||||||
|
|
||||||
} // NLMISC
|
} // NLMISC
|
||||||
|
|
||||||
#endif // NL_STRING_COMMON_H
|
#endif // NL_STRING_COMMON_H
|
||||||
|
|
Loading…
Reference in a new issue