# HG changeset patch # User Sebastien Jodogne # Date 1544440759 -3600 # Node ID aa0f06b43b2e7e613e69d77ca361050f7350b11d # Parent 9cc3d40e389bb196667bf3acd3657e909dde7158 fix diff -r 9cc3d40e389b -r aa0f06b43b2e Core/DicomParsing/ParsedDicomFile.cpp --- a/Core/DicomParsing/ParsedDicomFile.cpp Mon Dec 10 11:15:31 2018 +0100 +++ b/Core/DicomParsing/ParsedDicomFile.cpp Mon Dec 10 12:19:19 2018 +0100 @@ -1105,7 +1105,8 @@ default: throw OrthancException(ErrorCode_NotImplemented, - "Unsupported MIME type for the content of a new DICOM file: " + mime); + "Unsupported MIME type for the content of a new DICOM file: " + + std::string(EnumerationToString(mime))); } return true; diff -r 9cc3d40e389b -r aa0f06b43b2e Core/IDynamicObject.h --- a/Core/IDynamicObject.h Mon Dec 10 11:15:31 2018 +0100 +++ b/Core/IDynamicObject.h Mon Dec 10 12:19:19 2018 +0100 @@ -50,27 +50,27 @@ { } }; + /** - * This class is a simple implementation of a IDynamicObject that stores a single typed value + * This class is a simple implementation of a IDynamicObject that + * stores a single typed value. */ template - class SingleValueObject : public Orthanc::IDynamicObject + class SingleValueObject : public IDynamicObject { private: - T value_; + T value_; + public: - SingleValueObject(const T& value) : + explicit SingleValueObject(const T& value) : value_(value) { } - virtual ~SingleValueObject() - { - } const T& GetValue() const { - return value_; + return value_; } }; }