From 8200e1ffc70163c4955b4dd0d2965144397b69f4 Mon Sep 17 00:00:00 2001 From: artemp Date: Fri, 4 Dec 2015 12:43:55 +0000 Subject: [PATCH] transform_expression - add default ctors --- include/mapnik/transform_expression.hpp | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/include/mapnik/transform_expression.hpp b/include/mapnik/transform_expression.hpp index 9714b1eeb..80cbe4bf6 100644 --- a/include/mapnik/transform_expression.hpp +++ b/include/mapnik/transform_expression.hpp @@ -53,6 +53,8 @@ struct matrix_node expr_node e_; expr_node f_; + matrix_node() = default; + template explicit matrix_node(T const& m) : a_(m.sx), b_(m.shy), c_(m.shx), d_(m.sy), e_(m.tx), f_(m.ty) {} @@ -67,6 +69,8 @@ struct translate_node expr_node tx_; expr_node ty_; + translate_node() = default; + translate_node(expr_node const& tx, boost::optional const& ty) : tx_(tx) @@ -78,6 +82,8 @@ struct scale_node expr_node sx_; expr_node sy_; + scale_node() = default; + scale_node(expr_node const& sx, boost::optional const& sy) : sx_(sx) @@ -92,6 +98,8 @@ struct rotate_node expr_node cx_; expr_node cy_; + rotate_node() = default; + explicit rotate_node(expr_node const& angle) : angle_(angle) {} @@ -121,16 +129,16 @@ struct rotate_node struct skewX_node { expr_node angle_; - - explicit skewX_node(expr_node const& angle) + skewX_node() = default; + skewX_node(expr_node const& angle) : angle_(angle) {} }; struct skewY_node { expr_node angle_; - - explicit skewY_node(expr_node const& angle) + skewY_node() = default; + skewY_node(expr_node const& angle) : angle_(angle) {} };