From e6f9b8607929ac9f0776569a3f44ee6c54462e58 Mon Sep 17 00:00:00 2001 From: Marcel Nunez Date: Sat, 4 Jun 2022 11:39:45 -0700 Subject: [PATCH] Added initialization of atr_ member to transform constructors --- include/boost/polygon/transform.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/polygon/transform.hpp b/include/boost/polygon/transform.hpp index 1bb0cd9d..494e480c 100644 --- a/include/boost/polygon/transform.hpp +++ b/include/boost/polygon/transform.hpp @@ -89,7 +89,7 @@ class axis_transformation { explicit axis_transformation(ATR atr) : atr_(atr) {} axis_transformation(const axis_transformation& atr) : atr_(atr.atr_) {} - explicit axis_transformation(const orientation_2d& orient) { + explicit axis_transformation(const orientation_2d& orient) : atr_(NULL_TRANSFORM) { const ATR tmp[2] = { NORTH_EAST, // sort x, then y EAST_NORTH // sort y, then x @@ -97,7 +97,7 @@ class axis_transformation { atr_ = tmp[orient.to_int()]; } - explicit axis_transformation(const direction_2d& dir) { + explicit axis_transformation(const direction_2d& dir) : atr_(NULL_TRANSFORM) { const ATR tmp[4] = { SOUTH_EAST, // sort x, then y NORTH_EAST, // sort x, then y