From e562437c88d18d206d079aa0ed07f5be57203a4a Mon Sep 17 00:00:00 2001 From: weidai Date: Fri, 18 Jun 2010 07:06:59 +0000 Subject: fix possible race condition in Singleton::Ref() tolerate double destruction of Singleton and g_nullNameValuePairs fix #include of standard headers git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@488 57ff6487-cd31-0410-9ec3-f628ee90f5f0 --- cryptlib.h | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'cryptlib.h') diff --git a/cryptlib.h b/cryptlib.h index 15cd6da..b5faa58 100644 --- a/cryptlib.h +++ b/cryptlib.h @@ -318,14 +318,7 @@ DOCUMENTED_NAMESPACE_BEGIN(Name) DOCUMENTED_NAMESPACE_END //! empty set of name-value pairs -class CRYPTOPP_DLL NullNameValuePairs : public NameValuePairs -{ -public: - bool GetVoidValue(const char *name, const std::type_info &valueType, void *pValue) const {return false;} -}; - -//! _ -extern CRYPTOPP_DLL const NullNameValuePairs g_nullNameValuePairs; +extern CRYPTOPP_DLL const NameValuePairs &g_nullNameValuePairs; // ******************************************************** -- cgit v1.2.1