mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-23 00:07:59 +02:00
enh: #3890: Get rid of SingletonHolder
This commit is contained in:
@@ -22,7 +22,6 @@
|
||||
#include "Poco/Net/Utility.h"
|
||||
#include "Poco/Net/PrivateKeyPassphraseHandler.h"
|
||||
#include "Poco/Net/RejectCertificateHandler.h"
|
||||
#include "Poco/SingletonHolder.h"
|
||||
#include "Poco/Delegate.h"
|
||||
#include "Poco/Util/Application.h"
|
||||
#include "Poco/Util/OptionException.h"
|
||||
@@ -81,15 +80,10 @@ SSLManager::~SSLManager()
|
||||
}
|
||||
|
||||
|
||||
namespace
|
||||
{
|
||||
static Poco::SingletonHolder<SSLManager> singleton;
|
||||
}
|
||||
|
||||
|
||||
SSLManager& SSLManager::instance()
|
||||
{
|
||||
return *singleton.get();
|
||||
static SSLManager sm;
|
||||
return sm;
|
||||
}
|
||||
|
||||
|
||||
|
@@ -1569,15 +1569,10 @@ void SecureSocketImpl::stateMachine()
|
||||
}
|
||||
|
||||
|
||||
namespace
|
||||
{
|
||||
static Poco::SingletonHolder<StateMachine> stateMachineSingleton;
|
||||
}
|
||||
|
||||
|
||||
StateMachine& StateMachine::instance()
|
||||
{
|
||||
return *stateMachineSingleton.get();
|
||||
static StateMachine sm;
|
||||
return sm;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user