Mercurial > hg > orthanc
diff OrthancServer/main.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 | fa3ff492fb3b |
children | 56f2397f027a |
line wrap: on
line diff
--- a/OrthancServer/main.cpp Fri Feb 28 13:23:11 2020 +0100 +++ b/OrthancServer/main.cpp Mon Mar 02 15:32:45 2020 +0100 @@ -130,7 +130,7 @@ virtual IFindRequestHandler* ConstructFindRequestHandler() { - std::auto_ptr<OrthancFindRequestHandler> result(new OrthancFindRequestHandler(context_)); + std::unique_ptr<OrthancFindRequestHandler> result(new OrthancFindRequestHandler(context_)); { OrthancConfiguration::ReaderLock lock; @@ -1294,8 +1294,8 @@ bool upgradeDatabase, bool loadJobsFromDatabase) { - std::auto_ptr<IDatabaseWrapper> databasePtr; - std::auto_ptr<IStorageArea> storage; + std::unique_ptr<IDatabaseWrapper> databasePtr; + std::unique_ptr<IStorageArea> storage; #if ORTHANC_ENABLE_PLUGINS == 1 OrthancPlugins plugins;