diff UnitTestsSources/PixelTestPatternsTests.cpp @ 1298:8a0a62189f46

replacing std::auto_ptr by std::unique_ptr
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 02 Mar 2020 16:31:30 +0100
parents 9afe886e388b
children 30deba7bc8e2
line wrap: on
line diff
--- a/UnitTestsSources/PixelTestPatternsTests.cpp	Sun Feb 23 15:25:49 2020 +0100
+++ b/UnitTestsSources/PixelTestPatternsTests.cpp	Mon Mar 02 16:31:30 2020 +0100
@@ -36,7 +36,7 @@
 
 TEST(PixelTestPatterns, SimpleRedHGradient)
 {
-  std::auto_ptr<Orthanc::Image> texture;
+  std::unique_ptr<Orthanc::Image> texture;
 
   texture.reset(new Orthanc::Image(
     Orthanc::PixelFormat_RGBA32,
@@ -72,7 +72,7 @@
 
 TEST(PixelTestPatterns, SimpleRedBlueVGradient)
 {
-  std::auto_ptr<Orthanc::Image> texture;
+  std::unique_ptr<Orthanc::Image> texture;
 
   texture.reset(new Orthanc::Image(
     Orthanc::PixelFormat_RGBA32,
@@ -109,7 +109,7 @@
 
 TEST(PixelTestPatterns, MultiGradient)
 {
-  std::auto_ptr<Orthanc::Image> texture;
+  std::unique_ptr<Orthanc::Image> texture;
 
   const int CELLW = 64;
   const int CELLH = 64;