Mercurial > hg > orthanc-stone
comparison Framework/Fonts/GlyphBitmapAlphabet.cpp @ 1299:c38c89684d83 broker
replacing std::auto_ptr by std::unique_ptr
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 02 Mar 2020 17:21:24 +0100 |
parents | 2d8ab34c8c91 |
children | 30deba7bc8e2 |
comparison
equal
deleted
inserted
replaced
1297:6ab03e429f06 | 1299:c38c89684d83 |
---|---|
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); |