Use C++11's in-line member initializers instead of default constructors with initializer lists, for some structs.

--HG--
branch : minor
This commit is contained in:
Alex Szpakowski
2014-09-18 02:39:18 -03:00
parent fffbd3ecab
commit cf7342f8b7
9 changed files with 33 additions and 97 deletions
+6 -7
View File
@@ -44,18 +44,17 @@ public:
// Raw RGBA pixel data.
struct DecodedImage
{
int width, height;
size_t size;
unsigned char *data;
DecodedImage() : width(0), height(0), size(0), data(0) {}
int width = 0;
int height = 0;
size_t size = 0;
unsigned char *data = nullptr;
};
// Pixel data encoded in a particular format.
struct EncodedImage
{
size_t size;
unsigned char *data;
EncodedImage() : size(0), data(0) {}
size_t size = 0;
unsigned char *data = nullptr;
};
/**