Skip to content

Commit

Permalink
agg_curves.h: curve3_div: initialize member variables (CID 1175304)
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed May 22, 2021
1 parent 4d76128 commit 03afa53
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions renderers/agg/include/agg_curves.h
Expand Up @@ -94,18 +94,11 @@ namespace mapserver
class curve3_div
{
public:
curve3_div() :
m_approximation_scale(1.0),
m_angle_tolerance(0.0),
m_count(0)
{}
curve3_div() = default;

curve3_div(double x1, double y1,
double x2, double y2,
double x3, double y3) :
m_approximation_scale(1.0),
m_angle_tolerance(0.0),
m_count(0)
double x3, double y3)
{
init(x1, y1, x2, y2, x3, y3);
}
Expand Down Expand Up @@ -150,10 +143,10 @@ namespace mapserver
double x3, double y3,
unsigned level);

double m_approximation_scale;
double m_distance_tolerance_square;
double m_angle_tolerance;
unsigned m_count;
double m_approximation_scale = 1.0;
double m_distance_tolerance_square = 0;
double m_angle_tolerance = 0;
unsigned m_count = 0;
pod_bvector<point_d> m_points;
};

Expand Down

0 comments on commit 03afa53

Please sign in to comment.