summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornoloader <noloader@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2015-06-29 02:22:18 +0000
committernoloader <noloader@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2015-06-29 02:22:18 +0000
commitc0bc47321c9f7bbdeeb3e950c2e0f67beb7bd1ba (patch)
tree4f99f66ca1a552d439306d283c54d7d9c28b49aa
parent0ff3516b7f852ff219177ce143301c836d0f6d1e (diff)
downloadcryptopp-c0bc47321c9f7bbdeeb3e950c2e0f67beb7bd1ba.tar.gz
Added inline to StringNarrow to squash unused function warning
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@551 57ff6487-cd31-0410-9ec3-f628ee90f5f0
-rw-r--r--misc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc.h b/misc.h
index 2b326dd..1998d0b 100644
--- a/misc.h
+++ b/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
-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
#pragma warning(push)