mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-22 08:02:06 +02:00
enh: #3890: Get rid of SingletonHolder
This commit is contained in:
@@ -20,7 +20,6 @@
|
||||
#include "Poco/Crypto/RSACipherImpl.h"
|
||||
#include "Poco/Crypto/EVPCipherImpl.h"
|
||||
#include "Poco/Exception.h"
|
||||
#include "Poco/SingletonHolder.h"
|
||||
#include <openssl/evp.h>
|
||||
#include <openssl/err.h>
|
||||
#if OPENSSL_VERSION_NUMBER >= 0x30000000L
|
||||
@@ -46,15 +45,10 @@ CipherFactory::~CipherFactory()
|
||||
}
|
||||
|
||||
|
||||
namespace
|
||||
{
|
||||
static Poco::SingletonHolder<CipherFactory> holder;
|
||||
}
|
||||
|
||||
|
||||
CipherFactory& CipherFactory::defaultFactory()
|
||||
{
|
||||
return *holder.get();
|
||||
static CipherFactory cf;
|
||||
return cf;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user