comparison 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
comparison
equal deleted inserted replaced
156:710537acb488 157:275e14f57f1e
22 #pragma once 22 #pragma once
23 23
24 #include "../Common/ImplicitTransaction.h" 24 #include "../Common/ImplicitTransaction.h"
25 #include "GlobalProperties.h" 25 #include "GlobalProperties.h"
26 26
27 #include <Compatibility.h> // For std::unique_ptr<>
28
27 #include <orthanc/OrthancCDatabasePlugin.h> 29 #include <orthanc/OrthancCDatabasePlugin.h>
28 30
29 #include <gtest/gtest.h> 31 #include <gtest/gtest.h>
30 #include <list> 32 #include <list>
31 33
43 MetadataType_LastUpdate 45 MetadataType_LastUpdate
44 }; 46 };
45 } 47 }
46 48
47 49
48 static std::auto_ptr<OrthancPluginAttachment> expectedAttachment; 50 static std::unique_ptr<OrthancPluginAttachment> expectedAttachment;
49 static std::list<OrthancPluginDicomTag> expectedDicomTags; 51 static std::list<OrthancPluginDicomTag> expectedDicomTags;
50 static std::auto_ptr<OrthancPluginExportedResource> expectedExported; 52 static std::unique_ptr<OrthancPluginExportedResource> expectedExported;
51 53
52 static void CheckAttachment(const OrthancPluginAttachment& attachment) 54 static void CheckAttachment(const OrthancPluginAttachment& attachment)
53 { 55 {
54 ASSERT_STREQ(expectedAttachment->uuid, attachment.uuid); 56 ASSERT_STREQ(expectedAttachment->uuid, attachment.uuid);
55 ASSERT_EQ(expectedAttachment->contentType, attachment.contentType); 57 ASSERT_EQ(expectedAttachment->contentType, attachment.contentType);