From da9f37bb3986e6c8e7332bf5de45dd615957dbc0 Mon Sep 17 00:00:00 2001 From: sabrina-shanman Date: Mon, 3 Dec 2018 14:13:33 -0800 Subject: [PATCH] Fix up HFMFormatRegistry to accept subclass factory unique pointers --- libraries/hfm/src/hfm/HFMFormatRegistry.cpp | 2 +- libraries/hfm/src/hfm/HFMFormatRegistry.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/hfm/src/hfm/HFMFormatRegistry.cpp b/libraries/hfm/src/hfm/HFMFormatRegistry.cpp index b96662bdcc..8ff11d851d 100644 --- a/libraries/hfm/src/hfm/HFMFormatRegistry.cpp +++ b/libraries/hfm/src/hfm/HFMFormatRegistry.cpp @@ -13,7 +13,7 @@ namespace hfm { -FormatRegistry::MIMETypeID FormatRegistry::registerMIMEType(const MIMEType& mimeType, std::unique_ptr& supportedFactory) { +FormatRegistry::MIMETypeID FormatRegistry::registerMIMEType(const MIMEType& mimeType, std::unique_ptr supportedFactory) { std::lock_guard lock(_libraryLock); MIMETypeID id = _mimeTypeLibrary.registerMIMEType(mimeType); diff --git a/libraries/hfm/src/hfm/HFMFormatRegistry.h b/libraries/hfm/src/hfm/HFMFormatRegistry.h index bf67254c39..92076e814c 100644 --- a/libraries/hfm/src/hfm/HFMFormatRegistry.h +++ b/libraries/hfm/src/hfm/HFMFormatRegistry.h @@ -23,7 +23,7 @@ public: using MIMETypeID = MIMETypeLibrary::ID; static const MIMETypeID INVALID_MIME_TYPE_ID { MIMETypeLibrary::INVALID_ID }; - MIMETypeID registerMIMEType(const MIMEType& mimeType, std::unique_ptr& supportedFactory); + MIMETypeID registerMIMEType(const MIMEType& mimeType, std::unique_ptr supportedFactory); void unregisterMIMEType(const MIMETypeID& id); std::shared_ptr getSerializerForMIMEType(const hifi::ByteArray& data, const hifi::URL& url, const std::string& webMediaType) const;