mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-23 16:48:06 +02:00
enh: #3890: Get rid of SingletonHolder
This commit is contained in:
@@ -17,7 +17,6 @@
|
||||
#include "Poco/Exception.h"
|
||||
|
||||
|
||||
using Poco::SingletonHolder;
|
||||
using Poco::FastMutex;
|
||||
using Poco::NotFoundException;
|
||||
using Poco::ExistsException;
|
||||
@@ -137,15 +136,10 @@ void HTTPSessionFactory::setProxyConfig(const HTTPClientSession::ProxyConfig& pr
|
||||
}
|
||||
|
||||
|
||||
namespace
|
||||
{
|
||||
static SingletonHolder<HTTPSessionFactory> singleton;
|
||||
}
|
||||
|
||||
|
||||
HTTPSessionFactory& HTTPSessionFactory::defaultFactory()
|
||||
{
|
||||
return *singleton.get();
|
||||
static HTTPSessionFactory f;
|
||||
return f;
|
||||
}
|
||||
|
||||
|
||||
|
@@ -19,7 +19,6 @@
|
||||
|
||||
|
||||
#include "Poco/SharedLibrary.h"
|
||||
#include "Poco/SingletonHolder.h"
|
||||
#include "Poco/UnicodeConverter.h"
|
||||
#include <vector>
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
@@ -227,15 +226,10 @@ private:
|
||||
};
|
||||
|
||||
|
||||
namespace
|
||||
{
|
||||
static Poco::SingletonHolder<SSPINTLMProvider> sspintlmProviderHolder;
|
||||
}
|
||||
|
||||
|
||||
SSPINTLMProvider& SSPINTLMProvider::instance()
|
||||
{
|
||||
return *sspintlmProviderHolder.get();
|
||||
static SSPINTLMProvider p;
|
||||
return p;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user