comparison Framework/Fonts/GlyphBitmapAlphabet.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 2d8ab34c8c91
children 30deba7bc8e2
comparison
equal deleted inserted replaced
1296:86400fa16091 1298:8a0a62189f46
96 96
97 Orthanc::ImageAccessor* GlyphBitmapAlphabet::RenderText(const std::string& utf8) const 97 Orthanc::ImageAccessor* GlyphBitmapAlphabet::RenderText(const std::string& utf8) const
98 { 98 {
99 TextBoundingBox box(alphabet_, utf8); 99 TextBoundingBox box(alphabet_, utf8);
100 100
101 std::auto_ptr<Orthanc::ImageAccessor> bitmap( 101 std::unique_ptr<Orthanc::ImageAccessor> bitmap(
102 new Orthanc::Image(Orthanc::PixelFormat_Grayscale8, 102 new Orthanc::Image(Orthanc::PixelFormat_Grayscale8,
103 box.GetWidth(), box.GetHeight(), 103 box.GetWidth(), box.GetHeight(),
104 true /* force minimal pitch */)); 104 true /* force minimal pitch */));
105 105
106 Orthanc::ImageProcessing::Set(*bitmap, 0); 106 Orthanc::ImageProcessing::Set(*bitmap, 0);