Mercurial > hg > orthanc
diff Core/Images/FontRegistry.cpp @ 3712:2a170a8f1faf
replacing std::auto_ptr by std::unique_ptr
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 02 Mar 2020 15:32:45 +0100 |
parents | 94f4a18a79cc |
children | e3b3af80732d |
line wrap: on
line diff
--- a/Core/Images/FontRegistry.cpp Fri Feb 28 13:23:11 2020 +0100 +++ b/Core/Images/FontRegistry.cpp Mon Mar 02 15:32:45 2020 +0100 @@ -51,7 +51,7 @@ void FontRegistry::AddFromMemory(const std::string& font) { - std::auto_ptr<Font> f(new Font); + std::unique_ptr<Font> f(new Font); f->LoadFromMemory(font); fonts_.push_back(f.release()); } @@ -60,7 +60,7 @@ #if ORTHANC_SANDBOXED == 0 void FontRegistry::AddFromFile(const std::string& path) { - std::auto_ptr<Font> f(new Font); + std::unique_ptr<Font> f(new Font); f->LoadFromFile(path); fonts_.push_back(f.release()); }