mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 12:09:52 +02:00
Fix up HFMFormatRegistry to accept subclass factory unique pointers
This commit is contained in:
parent
19459c15a5
commit
da9f37bb39
2 changed files with 2 additions and 2 deletions
|
@ -13,7 +13,7 @@
|
||||||
|
|
||||||
namespace hfm {
|
namespace hfm {
|
||||||
|
|
||||||
FormatRegistry::MIMETypeID FormatRegistry::registerMIMEType(const MIMEType& mimeType, std::unique_ptr<Serializer::Factory>& supportedFactory) {
|
FormatRegistry::MIMETypeID FormatRegistry::registerMIMEType(const MIMEType& mimeType, std::unique_ptr<Serializer::Factory> supportedFactory) {
|
||||||
std::lock_guard<std::mutex> lock(_libraryLock);
|
std::lock_guard<std::mutex> lock(_libraryLock);
|
||||||
|
|
||||||
MIMETypeID id = _mimeTypeLibrary.registerMIMEType(mimeType);
|
MIMETypeID id = _mimeTypeLibrary.registerMIMEType(mimeType);
|
||||||
|
|
|
@ -23,7 +23,7 @@ public:
|
||||||
using MIMETypeID = MIMETypeLibrary::ID;
|
using MIMETypeID = MIMETypeLibrary::ID;
|
||||||
static const MIMETypeID INVALID_MIME_TYPE_ID { MIMETypeLibrary::INVALID_ID };
|
static const MIMETypeID INVALID_MIME_TYPE_ID { MIMETypeLibrary::INVALID_ID };
|
||||||
|
|
||||||
MIMETypeID registerMIMEType(const MIMEType& mimeType, std::unique_ptr<Serializer::Factory>& supportedFactory);
|
MIMETypeID registerMIMEType(const MIMEType& mimeType, std::unique_ptr<Serializer::Factory> supportedFactory);
|
||||||
void unregisterMIMEType(const MIMETypeID& id);
|
void unregisterMIMEType(const MIMETypeID& id);
|
||||||
|
|
||||||
std::shared_ptr<Serializer> getSerializerForMIMEType(const hifi::ByteArray& data, const hifi::URL& url, const std::string& webMediaType) const;
|
std::shared_ptr<Serializer> getSerializerForMIMEType(const hifi::ByteArray& data, const hifi::URL& url, const std::string& webMediaType) const;
|
||||||
|
|
Loading…
Reference in a new issue