comparison Framework/Plugins/StorageBackend.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 3236894320d6
comparison
equal deleted inserted replaced
156:710537acb488 157:275e14f57f1e
26 #endif 26 #endif
27 27
28 #include "../../Framework/Common/BinaryStringValue.h" 28 #include "../../Framework/Common/BinaryStringValue.h"
29 #include "../../Framework/Common/FileValue.h" 29 #include "../../Framework/Common/FileValue.h"
30 30
31 #include <Compatibility.h> // For std::unique_ptr<>
31 #include <OrthancException.h> 32 #include <OrthancException.h>
32 33
33 34
34 #define ORTHANC_PLUGINS_DATABASE_CATCH \ 35 #define ORTHANC_PLUGINS_DATABASE_CATCH \
35 catch (::Orthanc::OrthancException& e) \ 36 catch (::Orthanc::OrthancException& e) \
206 } 207 }
207 208
208 209
209 210
210 static OrthancPluginContext* context_ = NULL; 211 static OrthancPluginContext* context_ = NULL;
211 static std::auto_ptr<StorageBackend> backend_; 212 static std::unique_ptr<StorageBackend> backend_;
212 213
213 214
214 static OrthancPluginErrorCode StorageCreate(const char* uuid, 215 static OrthancPluginErrorCode StorageCreate(const char* uuid,
215 const void* content, 216 const void* content,
216 int64_t size, 217 int64_t size,