mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-22 16:02:29 +02:00
enh: #3890: Get rid of SingletonHolder
This commit is contained in:
@@ -17,7 +17,6 @@
|
||||
#include "Poco/DOM/Document.h"
|
||||
#include "Poco/DOM/Element.h"
|
||||
#include "Poco/String.h"
|
||||
#include "Poco/SingletonHolder.h"
|
||||
|
||||
|
||||
namespace Poco {
|
||||
@@ -71,15 +70,10 @@ Document* DOMImplementation::createDocument(const XMLString& namespaceURI, const
|
||||
}
|
||||
|
||||
|
||||
namespace
|
||||
{
|
||||
static Poco::SingletonHolder<DOMImplementation> sh;
|
||||
}
|
||||
|
||||
|
||||
const DOMImplementation& DOMImplementation::instance()
|
||||
{
|
||||
return *sh.get();
|
||||
static DOMImplementation di;
|
||||
return di;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user