Cleanup: modernize-use-equals-default

This was missing from rB19dfb6ea1f6745c0dbc2ce21839c30184b553878.
This commit is contained in:
2021-04-08 15:51:27 +02:00
parent 89b3c9da48
commit f031791185
33 changed files with 12 additions and 149 deletions

View File

@@ -46,11 +46,6 @@ inline static uint colorDistance(Color32 c0, Color32 c1)
}
#endif
/** Default constructor. */
ColorBlock::ColorBlock()
{
}
/** Init the color block from an array of colors. */
ColorBlock::ColorBlock(const uint *linearImage)
{

View File

@@ -34,7 +34,7 @@
/** Uncompressed 4x4 color block. */
struct ColorBlock {
ColorBlock();
ColorBlock() = default;
ColorBlock(const uint *linearImage);
ColorBlock(const ColorBlock &block);
ColorBlock(const Image *img, uint x, uint y);

View File

@@ -890,10 +890,6 @@ DirectDrawSurface::DirectDrawSurface(unsigned char *mem, uint size) : stream(mem
}
}
DirectDrawSurface::~DirectDrawSurface()
{
}
bool DirectDrawSurface::isValid() const
{
if (header.fourcc != FOURCC_DDS || header.size != 124) {

View File

@@ -136,7 +136,6 @@ struct DDSHeader {
class DirectDrawSurface {
public:
DirectDrawSurface(unsigned char *mem, uint size);
~DirectDrawSurface();
bool isValid() const;
bool isSupported() const;