Mercurial > hg > orthanc
comparison Plugins/Engine/PluginsManager.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 |
---|---|
247 { | 247 { |
248 ScanFolderForPlugins(path, false); | 248 ScanFolderForPlugins(path, false); |
249 return; | 249 return; |
250 } | 250 } |
251 | 251 |
252 std::auto_ptr<Plugin> plugin(new Plugin(*this, path)); | 252 std::unique_ptr<Plugin> plugin(new Plugin(*this, path)); |
253 | 253 |
254 if (!IsOrthancPlugin(plugin->GetSharedLibrary())) | 254 if (!IsOrthancPlugin(plugin->GetSharedLibrary())) |
255 { | 255 { |
256 LOG(ERROR) << "Plugin " << plugin->GetSharedLibrary().GetPath() | 256 LOG(ERROR) << "Plugin " << plugin->GetSharedLibrary().GetPath() |
257 << " does not declare the proper entry functions"; | 257 << " does not declare the proper entry functions"; |