comparison Framework/Common/NullValue.h @ 186:6fe74f9a516e

cppcheck
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 16 Dec 2020 15:05:19 +0100
parents 4cd7e45b671e
children 3236894320d6
comparison
equal deleted inserted replaced
185:7c46155b5bb4 186:6fe74f9a516e
21 21
22 #pragma once 22 #pragma once
23 23
24 #include "IValue.h" 24 #include "IValue.h"
25 25
26 #include <Compatibility.h>
27
26 namespace OrthancDatabases 28 namespace OrthancDatabases
27 { 29 {
28 class NullValue : public IValue 30 class NullValue : public IValue
29 { 31 {
30 public: 32 public:
31 virtual ValueType GetType() const 33 virtual ValueType GetType() const ORTHANC_OVERRIDE
32 { 34 {
33 return ValueType_Null; 35 return ValueType_Null;
34 } 36 }
35 37
36 virtual IValue* Convert(ValueType target) const; 38 virtual IValue* Convert(ValueType target) const ORTHANC_OVERRIDE;
37 39
38 virtual std::string Format() const 40 virtual std::string Format() const ORTHANC_OVERRIDE
39 { 41 {
40 return "(null)"; 42 return "(null)";
41 } 43 }
42 }; 44 };
43 } 45 }