comparison PostgreSQL/Plugins/IndexPlugin.cpp @ 157:275e14f57f1e

replacing deprecated std::auto_ptr by std::unique_ptr
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 06 Jul 2020 12:45:58 +0200
parents 063aa53b5917
children 2ccde9c7311b 3236894320d6
comparison
equal deleted inserted replaced
156:710537acb488 157:275e14f57f1e
20 20
21 21
22 #include "PostgreSQLIndex.h" 22 #include "PostgreSQLIndex.h"
23 #include "../../Framework/Plugins/PluginInitialization.h" 23 #include "../../Framework/Plugins/PluginInitialization.h"
24 24
25 #include <Compatibility.h> // For std::unique_ptr<>
25 #include <Logging.h> 26 #include <Logging.h>
26 27
27 static std::auto_ptr<OrthancDatabases::PostgreSQLIndex> backend_; 28 static std::unique_ptr<OrthancDatabases::PostgreSQLIndex> backend_;
28 29
29 30
30 extern "C" 31 extern "C"
31 { 32 {
32 ORTHANC_PLUGINS_API int32_t OrthancPluginInitialize(OrthancPluginContext* context) 33 ORTHANC_PLUGINS_API int32_t OrthancPluginInitialize(OrthancPluginContext* context)