changeset 2989:aa0f06b43b2e

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 10 Dec 2018 12:19:19 +0100
parents 9cc3d40e389b
children 4d8aa0875daf 8a7f1ff10f91
files Core/DicomParsing/ParsedDicomFile.cpp Core/IDynamicObject.h
diffstat 2 files changed, 10 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- 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;
--- 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 <typename T>
-  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_;
     }
   };
 }