diff options
Diffstat (limited to 'src/support/dom')
-rw-r--r-- | src/support/dom/document_cache.cc | 2 | ||||
-rw-r--r-- | src/support/dom/document_cache_item.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/support/dom/document_cache.cc b/src/support/dom/document_cache.cc index c18bf96..c000aef 100644 --- a/src/support/dom/document_cache.cc +++ b/src/support/dom/document_cache.cc @@ -33,7 +33,7 @@ xalan::XalanDocument* DomDocumentCache::create(document_ptr&& document) { std::lock_guard<std::mutex> guard(this->write_mutex_); this->cache_.emplace( - new item( + std::make_unique<item>( std::move(document) ) ); diff --git a/src/support/dom/document_cache_item.h b/src/support/dom/document_cache_item.h index ebc9172..df24948 100644 --- a/src/support/dom/document_cache_item.h +++ b/src/support/dom/document_cache_item.h @@ -17,7 +17,7 @@ class DomDocumentCache::item { xalan::XalanDocument* getXalanDocument(); protected: - friend DomDocumentCache; + friend std::unique_ptr<item> std::make_unique<item>(document_ptr&&); item(document_ptr&&); |