initialize tint, probably fixes the intermitten error

This commit is contained in:
Thomas Fussell 2016-08-02 00:34:07 -04:00
parent ff401a0843
commit f21d4c922c
2 changed files with 9 additions and 5 deletions

View File

@ -89,7 +89,8 @@ color::color()
: type_(type::auto_), : type_(type::auto_),
rgb_(rgb_color(0, 0, 0, 0)), rgb_(rgb_color(0, 0, 0, 0)),
indexed_(0), indexed_(0),
theme_(0) theme_(0),
tint_(0)
{ {
} }
@ -97,7 +98,8 @@ color::color(const rgb_color &rgb)
: type_(type::rgb), : type_(type::rgb),
rgb_(rgb), rgb_(rgb),
indexed_(0), indexed_(0),
theme_(0) theme_(0),
tint_(0)
{ {
} }
@ -105,7 +107,8 @@ color::color(const indexed_color &indexed)
: type_(type::indexed), : type_(type::indexed),
rgb_(rgb_color(0, 0, 0, 0)), rgb_(rgb_color(0, 0, 0, 0)),
indexed_(indexed), indexed_(indexed),
theme_(0) theme_(0),
tint_(0)
{ {
} }
@ -113,7 +116,8 @@ color::color(const theme_color &theme)
: type_(type::theme), : type_(type::theme),
rgb_(rgb_color(0, 0, 0, 0)), rgb_(rgb_color(0, 0, 0, 0)),
indexed_(0), indexed_(0),
theme_(theme) theme_(theme),
tint_(0)
{ {
} }

View File

@ -19,7 +19,7 @@ public:
style_serializer.write_stylesheet(observed); style_serializer.write_stylesheet(observed);
pugi::xml_document expected; pugi::xml_document expected;
expected.load(expected_string.c_str()); expected.load(expected_string.c_str());
observed.save(std::cout);
auto comparison = xml_helper::compare_xml(expected.root(), observed.root()); auto comparison = xml_helper::compare_xml(expected.root(), observed.root());
return (bool)comparison; return (bool)comparison;
} }