diff --git a/test/unit/svg/svg_parser_test.cpp b/test/unit/svg/svg_parser_test.cpp index c50d80380..2ff448067 100644 --- a/test/unit/svg/svg_parser_test.cpp +++ b/test/unit/svg/svg_parser_test.cpp @@ -55,11 +55,11 @@ std::ostream& operator<<(std::ostream& os, mapnik::gradient const& gr) double cx, cy, fx, fy, r; gr.get_control_points(fx, fy, cx, cy, r); - os << "\n"; + os << "\n"; for (auto const& stop : gr.get_stop_array()) { - os << " (stop) << "\" color=\"" << std::get<1>(stop) << "\"/>\n"; + os << " (stop) << "\" color=\"" << std::get<1>(stop) << "\"/>\n"; } os << "\n"; @@ -69,8 +69,7 @@ std::ostream& operator<<(std::ostream& os, mapnik::gradient const& gr) std::ostream& operator<<(std::ostream& os, agg::trans_affine const& tr) { - os << "matrix(" << tr.sx << "," << tr.shy << "," - << tr.shx << "," << tr.sy << "," << tr.tx << "," + os << "matrix(" << tr.sx << "," << tr.shy << "," << tr.shx << "," << tr.sy << "," << tr.tx << "," << tr.ty << ")"; return os; } @@ -78,13 +77,14 @@ std::ostream& operator<<(std::ostream& os, agg::trans_affine const& tr) struct group_attribute_visitor { group_attribute_visitor(std::stringstream& ss, unsigned padding) - : ss_(ss), padding_(padding) + : ss_(ss) + , padding_(padding) {} void operator()(mapnik::svg::group const& g) const { padding_ += 2; - //ss_ << "padding=>" << padding_ << std::endl; + // ss_ << "padding=>" << padding_ << std::endl; std::string pad(padding_, ' '); ss_ << pad << "" << std::endl; for (auto const& elem : g.elements) @@ -112,7 +112,7 @@ struct group_attribute_visitor ss_ << pad << " " << attr.stroke_width << "" << std::endl; ss_ << pad << " " << attr.stroke_opacity << "" << std::endl; ss_ << pad << "" << std::endl; - padding_ -=2; + padding_ -= 2; } std::stringstream& ss_; mutable unsigned padding_;