comparison Core/OrthancException.h @ 656:08eca5d86aad

fixes to cppcheck
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 04 Nov 2013 11:19:31 +0100
parents 2d269089078f
children 2d0a347e8cfc
comparison
equal deleted inserted replaced
655:93adc693cc60 656:08eca5d86aad
44 std::string custom_; 44 std::string custom_;
45 45
46 public: 46 public:
47 static const char* GetDescription(ErrorCode error); 47 static const char* GetDescription(ErrorCode error);
48 48
49 OrthancException(const char* custom) 49 OrthancException(const char* custom) :
50 error_(ErrorCode_Custom),
51 custom_(custom)
50 { 52 {
51 error_ = ErrorCode_Custom;
52 custom_ = custom;
53 } 53 }
54 54
55 OrthancException(const std::string& custom) 55 OrthancException(const std::string& custom) :
56 error_(ErrorCode_Custom),
57 custom_(custom)
56 { 58 {
57 error_ = ErrorCode_Custom;
58 custom_ = custom;
59 } 59 }
60 60
61 OrthancException(ErrorCode error) 61 OrthancException(ErrorCode error) : error_(error)
62 { 62 {
63 error_ = error;
64 } 63 }
65 64
66 ErrorCode GetErrorCode() const 65 ErrorCode GetErrorCode() const
67 { 66 {
68 return error_; 67 return error_;