Mercurial > hg > orthanc-databases
diff Framework/Plugins/IndexUnitTests.h @ 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 |
line wrap: on
line diff
--- a/Framework/Plugins/IndexUnitTests.h Mon Jul 06 12:40:44 2020 +0200 +++ b/Framework/Plugins/IndexUnitTests.h Mon Jul 06 12:45:58 2020 +0200 @@ -24,6 +24,8 @@ #include "../Common/ImplicitTransaction.h" #include "GlobalProperties.h" +#include <Compatibility.h> // For std::unique_ptr<> + #include <orthanc/OrthancCDatabasePlugin.h> #include <gtest/gtest.h> @@ -45,9 +47,9 @@ } -static std::auto_ptr<OrthancPluginAttachment> expectedAttachment; +static std::unique_ptr<OrthancPluginAttachment> expectedAttachment; static std::list<OrthancPluginDicomTag> expectedDicomTags; -static std::auto_ptr<OrthancPluginExportedResource> expectedExported; +static std::unique_ptr<OrthancPluginExportedResource> expectedExported; static void CheckAttachment(const OrthancPluginAttachment& attachment) {