mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 13:06:59 -04:00
Replace scoped_ptr by unique_ptr
This commit is contained in:
@@ -11,7 +11,6 @@
|
||||
#include <gui/thumbnail_thread.hpp>
|
||||
#include <gui/util.hpp>
|
||||
#include <gfx/gfx.hpp>
|
||||
#include <boost/scoped_ptr.hpp>
|
||||
#include <wx/url.h>
|
||||
|
||||
DECLARE_TYPEOF_COLLECTION(InstallablePackageP);
|
||||
@@ -172,7 +171,7 @@ class PackageIconRequest : public ThumbnailRequest {
|
||||
|
||||
virtual Image generate() {
|
||||
wxURL url(ti->package->description->icon_url);
|
||||
scoped_ptr<wxInputStream> isP(url.GetInputStream());
|
||||
unique_ptr<wxInputStream> isP(url.GetInputStream());
|
||||
if (!isP) return wxImage();
|
||||
SeekAtStartInputStream is2(*isP);
|
||||
Image result(is2);
|
||||
|
||||
Reference in New Issue
Block a user