Initialize all members.

This commit is contained in:
Mark de Wever 2008-09-28 14:45:57 +00:00
parent a023b5fc15
commit 0387bca05c
2 changed files with 18 additions and 4 deletions

View File

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

View File

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