mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-23 08:31:43 +02:00
enh: #3890: Get rid of SingletonHolder
This commit is contained in:
@@ -15,7 +15,6 @@
|
||||
#include "Poco/Prometheus/Registry.h"
|
||||
#include "Poco/Prometheus/Collector.h"
|
||||
#include "Poco/Exception.h"
|
||||
#include "Poco/SingletonHolder.h"
|
||||
|
||||
|
||||
using namespace std::string_literals;
|
||||
@@ -90,15 +89,10 @@ void Registry::exportTo(Exporter& exporter) const
|
||||
}
|
||||
|
||||
|
||||
namespace
|
||||
{
|
||||
static SingletonHolder<Registry> sh;
|
||||
}
|
||||
|
||||
|
||||
Registry& Registry::defaultRegistry()
|
||||
{
|
||||
return *sh.get();
|
||||
static Registry r;
|
||||
return r;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user