Mercurial > hg > orthanc
comparison Core/OrthancException.h @ 3712:2a170a8f1faf
replacing std::auto_ptr by std::unique_ptr
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 02 Mar 2020 15:32:45 +0100 |
parents | 94f4a18a79cc |
children | 5d2348b39392 |
comparison
equal
deleted
inserted
replaced
3709:1f4910999fe7 | 3712:2a170a8f1faf |
---|---|
31 **/ | 31 **/ |
32 | 32 |
33 | 33 |
34 #pragma once | 34 #pragma once |
35 | 35 |
36 #include "Compatibility.h" | |
36 #include "Enumerations.h" | 37 #include "Enumerations.h" |
37 #include "Logging.h" | 38 #include "Logging.h" |
38 | 39 |
39 #include <stdint.h> | 40 #include <stdint.h> |
40 #include <string> | 41 #include <string> |
51 | 52 |
52 ErrorCode errorCode_; | 53 ErrorCode errorCode_; |
53 HttpStatus httpStatus_; | 54 HttpStatus httpStatus_; |
54 | 55 |
55 // New in Orthanc 1.5.0 | 56 // New in Orthanc 1.5.0 |
56 std::auto_ptr<std::string> details_; | 57 std::unique_ptr<std::string> details_; |
57 | 58 |
58 public: | 59 public: |
59 OrthancException(const OrthancException& other) : | 60 OrthancException(const OrthancException& other) : |
60 errorCode_(other.errorCode_), | 61 errorCode_(other.errorCode_), |
61 httpStatus_(other.httpStatus_) | 62 httpStatus_(other.httpStatus_) |