mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-27 07:53:52 +00:00
Initialize all members.
This commit is contained in:
parent
a023b5fc15
commit
0387bca05c
@ -20,9 +20,10 @@
|
||||
#include "serialization/string_utils.hpp"
|
||||
#include "SDL_image.h"
|
||||
|
||||
cutter::cutter() : verbose_(false)
|
||||
cutter::cutter()
|
||||
: masks_()
|
||||
, verbose_(false)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
const config cutter::load_config(const std::string &filename)
|
||||
|
@ -25,7 +25,14 @@ class cutter
|
||||
public:
|
||||
struct mask
|
||||
{
|
||||
mask() : image(NULL) {}
|
||||
mask()
|
||||
: name()
|
||||
, image(NULL)
|
||||
, filename()
|
||||
, shift()
|
||||
, cut()
|
||||
{
|
||||
}
|
||||
|
||||
std::string name;
|
||||
surface image;
|
||||
@ -36,7 +43,13 @@ public:
|
||||
};
|
||||
typedef std::map<std::string, mask> mask_map;
|
||||
struct positioned_surface {
|
||||
positioned_surface() : image(NULL) {};
|
||||
positioned_surface()
|
||||
: name()
|
||||
, pos()
|
||||
, image(NULL)
|
||||
, mask()
|
||||
{
|
||||
};
|
||||
|
||||
std::string name;
|
||||
exploder_point pos;
|
||||
|
Loading…
x
Reference in New Issue
Block a user