Mercurial > hg > orthanc
comparison Core/JobsEngine/Operations/JobOperationValues.cpp @ 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 |
comparison
equal
deleted
inserted
replaced
3709:1f4910999fe7 | 3712:2a170a8f1faf |
---|---|
127 if (source.type() != Json::arrayValue) | 127 if (source.type() != Json::arrayValue) |
128 { | 128 { |
129 throw OrthancException(ErrorCode_BadFileFormat); | 129 throw OrthancException(ErrorCode_BadFileFormat); |
130 } | 130 } |
131 | 131 |
132 std::auto_ptr<JobOperationValues> result(new JobOperationValues); | 132 std::unique_ptr<JobOperationValues> result(new JobOperationValues); |
133 | 133 |
134 result->Reserve(source.size()); | 134 result->Reserve(source.size()); |
135 | 135 |
136 for (Json::Value::ArrayIndex i = 0; i < source.size(); i++) | 136 for (Json::Value::ArrayIndex i = 0; i < source.size(); i++) |
137 { | 137 { |