mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-21 23:56:54 +02:00
enh: #3890: Get rid of SingletonHolder
This commit is contained in:
@@ -11,7 +11,6 @@
|
||||
#include "ApacheApplication.h"
|
||||
#include "ApacheChannel.h"
|
||||
#include "Poco/Logger.h"
|
||||
#include "Poco/SingletonHolder.h"
|
||||
#include <vector>
|
||||
|
||||
|
||||
@@ -48,6 +47,6 @@ void ApacheApplication::setup()
|
||||
|
||||
ApacheApplication& ApacheApplication::instance()
|
||||
{
|
||||
static Poco::SingletonHolder<ApacheApplication> sh;
|
||||
return *sh.get();
|
||||
static ApacheApplication aa;
|
||||
return aa;
|
||||
}
|
||||
|
Reference in New Issue
Block a user