From b59efe8ff09961bcf2ebd35530947b049544ef78 Mon Sep 17 00:00:00 2001 From: kaetemi Date: Wed, 1 May 2019 11:45:44 +0800 Subject: [PATCH] Cleanup --- code/nel/include/nel/misc/string_common.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/code/nel/include/nel/misc/string_common.h b/code/nel/include/nel/misc/string_common.h index 431b517d7..4ce793670 100644 --- a/code/nel/include/nel/misc/string_common.h +++ b/code/nel/include/nel/misc/string_common.h @@ -285,10 +285,10 @@ std::string wideToMbcs(const std::wstring &str); std::wstring mbcsToWide(const char *str, size_t len = 0); std::wstring mbcsToWide(const std::string &str); -inline const char* asCStr(const char *str) { return str; } -inline const char* asCStr(const std::string &str) { return str.c_str(); } -inline const wchar_t* asCStr(const wchar_t *str) { return str; } -inline const wchar_t* asCStr(const std::wstring &str) { return str.c_str(); } +inline const char *asCStr(const char *str) { return str; } +inline const char *asCStr(const std::string &str) { return str.c_str(); } +inline const wchar_t *asCStr(const wchar_t *str) { return str; } +inline const wchar_t *asCStr(const std::wstring &str) { return str.c_str(); } #if defined(NL_OS_WINDOWS) #define nlUtf8ToMbcs(str) (NLMISC::utf8ToMbcs(str).c_str()) @@ -357,8 +357,8 @@ 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(); } +inline const tchar *asCStr(const tchar *str) { return str; } +inline const tchar *asCStr(const tstring &str) { return str.c_str(); } } // NLMISC