3
0
Fork 0
mirror of https://github.com/lubosz/overte.git synced 2025-04-12 17:11:06 +02:00

Another default operator= and copy constructor

This commit is contained in:
Dale Glass 2020-01-19 11:24:51 +01:00
parent 68d10a2fe1
commit d0dc041275
2 changed files with 2 additions and 1 deletions
libraries
image/src/image
shared/src/shared

View file

@ -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();

View file

@ -48,6 +48,7 @@ public:
webMediaTypes(mediaType.webMediaTypes),
fileSignatures(mediaType.fileSignatures) {
}
MediaType& operator=(const MediaType&) = default;
static MediaType NONE;