mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-07 19:23:04 +02:00
Another default operator= and copy constructor
This commit is contained in:
parent
68d10a2fe1
commit
d0dc041275
2 changed files with 2 additions and 1 deletions
|
@ -59,7 +59,7 @@ namespace image {
|
|||
Image() : _dims(0,0) {}
|
||||
Image(int width, int height, Format format);
|
||||
Image(const QImage& data) : _packedData(data), _dims(data.width(), data.height()), _format((Format)data.format()) {}
|
||||
|
||||
Image(const Image &other) = default;
|
||||
void operator=(const QImage& other) {
|
||||
_packedData = other;
|
||||
_floatData.clear();
|
||||
|
|
|
@ -48,6 +48,7 @@ public:
|
|||
webMediaTypes(mediaType.webMediaTypes),
|
||||
fileSignatures(mediaType.fileSignatures) {
|
||||
}
|
||||
MediaType& operator=(const MediaType&) = default;
|
||||
|
||||
static MediaType NONE;
|
||||
|
||||
|
|
Loading…
Reference in a new issue