mirror of
https://github.com/love2d/love.git
synced 2026-08-15 15:51:12 +02:00
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:
@@ -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;
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user