Mercurial > hg > orthanc
comparison 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 |
comparison
equal
deleted
inserted
replaced
3709:1f4910999fe7 | 3712:2a170a8f1faf |
---|---|
128 return new OrthancStoreRequestHandler(context_); | 128 return new OrthancStoreRequestHandler(context_); |
129 } | 129 } |
130 | 130 |
131 virtual IFindRequestHandler* ConstructFindRequestHandler() | 131 virtual IFindRequestHandler* ConstructFindRequestHandler() |
132 { | 132 { |
133 std::auto_ptr<OrthancFindRequestHandler> result(new OrthancFindRequestHandler(context_)); | 133 std::unique_ptr<OrthancFindRequestHandler> result(new OrthancFindRequestHandler(context_)); |
134 | 134 |
135 { | 135 { |
136 OrthancConfiguration::ReaderLock lock; | 136 OrthancConfiguration::ReaderLock lock; |
137 result->SetMaxResults(lock.GetConfiguration().GetUnsignedIntegerParameter("LimitFindResults", 0)); | 137 result->SetMaxResults(lock.GetConfiguration().GetUnsignedIntegerParameter("LimitFindResults", 0)); |
138 result->SetMaxInstances(lock.GetConfiguration().GetUnsignedIntegerParameter("LimitFindInstances", 0)); | 138 result->SetMaxInstances(lock.GetConfiguration().GetUnsignedIntegerParameter("LimitFindInstances", 0)); |
1292 static bool ConfigurePlugins(int argc, | 1292 static bool ConfigurePlugins(int argc, |
1293 char* argv[], | 1293 char* argv[], |
1294 bool upgradeDatabase, | 1294 bool upgradeDatabase, |
1295 bool loadJobsFromDatabase) | 1295 bool loadJobsFromDatabase) |
1296 { | 1296 { |
1297 std::auto_ptr<IDatabaseWrapper> databasePtr; | 1297 std::unique_ptr<IDatabaseWrapper> databasePtr; |
1298 std::auto_ptr<IStorageArea> storage; | 1298 std::unique_ptr<IStorageArea> storage; |
1299 | 1299 |
1300 #if ORTHANC_ENABLE_PLUGINS == 1 | 1300 #if ORTHANC_ENABLE_PLUGINS == 1 |
1301 OrthancPlugins plugins; | 1301 OrthancPlugins plugins; |
1302 plugins.SetCommandLineArguments(argc, argv); | 1302 plugins.SetCommandLineArguments(argc, argv); |
1303 LoadPlugins(plugins); | 1303 LoadPlugins(plugins); |