From f21d4c922c2c6326f829937eecdbfb930e5f4129 Mon Sep 17 00:00:00 2001 From: Thomas Fussell Date: Tue, 2 Aug 2016 00:34:07 -0400 Subject: [PATCH] initialize tint, probably fixes the intermitten error --- source/styles/color.cpp | 12 ++++++++---- source/workbook/tests/test_style_writer.hpp | 2 +- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/source/styles/color.cpp b/source/styles/color.cpp index 9f1ef2be..870cb930 100644 --- a/source/styles/color.cpp +++ b/source/styles/color.cpp @@ -89,7 +89,8 @@ color::color() : type_(type::auto_), rgb_(rgb_color(0, 0, 0, 0)), indexed_(0), - theme_(0) + theme_(0), + tint_(0) { } @@ -97,7 +98,8 @@ color::color(const rgb_color &rgb) : type_(type::rgb), rgb_(rgb), indexed_(0), - theme_(0) + theme_(0), + tint_(0) { } @@ -105,7 +107,8 @@ color::color(const indexed_color &indexed) : type_(type::indexed), rgb_(rgb_color(0, 0, 0, 0)), indexed_(indexed), - theme_(0) + theme_(0), + tint_(0) { } @@ -113,7 +116,8 @@ color::color(const theme_color &theme) : type_(type::theme), rgb_(rgb_color(0, 0, 0, 0)), indexed_(0), - theme_(theme) + theme_(theme), + tint_(0) { } diff --git a/source/workbook/tests/test_style_writer.hpp b/source/workbook/tests/test_style_writer.hpp index 72ad7940..80c64d9c 100644 --- a/source/workbook/tests/test_style_writer.hpp +++ b/source/workbook/tests/test_style_writer.hpp @@ -19,7 +19,7 @@ public: style_serializer.write_stylesheet(observed); pugi::xml_document expected; expected.load(expected_string.c_str()); - observed.save(std::cout); + auto comparison = xml_helper::compare_xml(expected.root(), observed.root()); return (bool)comparison; }