Added inline to StringNarrow to squash unused function warning
parent
9425e16437
commit
a0390f1fd7
2
misc.h
2
misc.h
|
|
@ -545,7 +545,7 @@ inline void SecureWipeArray(T *buf, size_t n)
|
||||||
}
|
}
|
||||||
|
|
||||||
// this function uses wcstombs(), which assumes that setlocale() has been called
|
// this function uses wcstombs(), which assumes that setlocale() has been called
|
||||||
static std::string StringNarrow(const wchar_t *str, bool throwOnError = true)
|
static inline std::string StringNarrow(const wchar_t *str, bool throwOnError = true)
|
||||||
{
|
{
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
#pragma warning(push)
|
#pragma warning(push)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue