File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -61,8 +61,8 @@ class Image {
61
61
62
62
Image (Image const &) = delete ;
63
63
Image& operator =(Image const &) = delete ;
64
- Image (Image&&) = delete ;
65
- Image& operator =(Image&&) = delete ;
64
+ Image (Image&&) = default ;
65
+ Image& operator =(Image&&) = default ;
66
66
67
67
constexpr Id id () const noexcept { return id_; }
68
68
constexpr ImageFormat format () const noexcept { return format_; }
@@ -72,10 +72,10 @@ class Image {
72
72
constexpr Height height () const noexcept { return size_.height ; }
73
73
74
74
private:
75
- Id const id_;
76
- ImageFormat const format_;
77
- Data const data_;
78
- ImageSize const size_;
75
+ Id id_;
76
+ ImageFormat format_;
77
+ Data data_;
78
+ ImageSize size_;
79
79
};
80
80
81
81
// / Image resize hints are used to properly fit/fill the area to place the image onto.
@@ -197,6 +197,7 @@ inline bool operator<(ImageFragment const& a, ImageFragment const& b) noexcept
197
197
class ImagePool {
198
198
public:
199
199
using OnImageRemove = std::function<void (Image const *)>;
200
+
200
201
ImagePool (OnImageRemove _onImageRemove, Image::Id _nextImageId) :
201
202
nextImageId_{ _nextImageId },
202
203
images_{},
You can’t perform that action at this time.
0 commit comments