comparison Plugins/Samples/ModalityWorklists/Plugin.cpp @ 3768:6110a4995ace

replacing std::auto_ptr by std::unique_ptr in GDCM sample plugin
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 17 Mar 2020 15:02:23 +0100
parents 94f4a18a79cc
children
comparison
equal deleted inserted replaced
3767:c6658187e4b1 3768:6110a4995ace
17 * You should have received a copy of the GNU General Public License 17 * You should have received a copy of the GNU General Public License
18 * along with this program. If not, see <http://www.gnu.org/licenses/>. 18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 **/ 19 **/
20 20
21 21
22 #include "../../../Core/Compatibility.h"
22 #include "../Common/OrthancPluginCppWrapper.h" 23 #include "../Common/OrthancPluginCppWrapper.h"
23 24
24 #include <boost/filesystem.hpp> 25 #include <boost/filesystem.hpp>
25 #include <json/value.h> 26 #include <json/value.h>
26 #include <json/reader.h> 27 #include <json/reader.h>
140 const char* calledAet) 141 const char* calledAet)
141 { 142 {
142 try 143 try
143 { 144 {
144 // Construct an object to match the worklists in the database against the C-Find query 145 // Construct an object to match the worklists in the database against the C-Find query
145 std::auto_ptr<OrthancPlugins::FindMatcher> matcher(CreateMatcher(query, issuerAet)); 146 std::unique_ptr<OrthancPlugins::FindMatcher> matcher(CreateMatcher(query, issuerAet));
146 147
147 // Loop over the regular files in the database folder 148 // Loop over the regular files in the database folder
148 namespace fs = boost::filesystem; 149 namespace fs = boost::filesystem;
149 150
150 fs::path source(folder_); 151 fs::path source(folder_);