silence a few msvc cast warnings
This commit is contained in:
parent
6c76896677
commit
7491d08b67
4 changed files with 6 additions and 6 deletions
|
@ -84,7 +84,7 @@ public:
|
||||||
if (is_bitmap())
|
if (is_bitmap())
|
||||||
return (*bitmap_data_)->width();
|
return (*bitmap_data_)->width();
|
||||||
else if (is_vector())
|
else if (is_vector())
|
||||||
return (*vector_data_)->bounding_box().width();
|
return static_cast<unsigned>((*vector_data_)->bounding_box().width());
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
inline unsigned height() const
|
inline unsigned height() const
|
||||||
|
@ -92,7 +92,7 @@ public:
|
||||||
if (is_bitmap())
|
if (is_bitmap())
|
||||||
return (*bitmap_data_)->height();
|
return (*bitmap_data_)->height();
|
||||||
else if (is_vector())
|
else if (is_vector())
|
||||||
return (*vector_data_)->bounding_box().height();
|
return static_cast<unsigned>((*vector_data_)->bounding_box().height());
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -106,7 +106,7 @@ template <typename Locator, typename Detector> double markers_placement<Locator,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
unsigned points = round(length / s);
|
unsigned points = round(length / s);
|
||||||
if (points == 0) return 0; //Path to short
|
if (points == 0) return 0.0; //Path to short
|
||||||
return length / points;
|
return length / points;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -86,7 +86,7 @@ public:
|
||||||
u = 0;
|
u = 0;
|
||||||
else if (u > 1)
|
else if (u > 1)
|
||||||
u = 1;
|
u = 1;
|
||||||
return u*d;
|
return static_cast<int>(u*d);
|
||||||
}
|
}
|
||||||
private:
|
private:
|
||||||
double x1_;
|
double x1_;
|
||||||
|
|
|
@ -105,7 +105,7 @@ text_symbolizer::text_symbolizer(expression_ptr name, std::string const& face_na
|
||||||
max_char_angle_delta_(22.5 * M_PI/180.0),
|
max_char_angle_delta_(22.5 * M_PI/180.0),
|
||||||
fill_(fill),
|
fill_(fill),
|
||||||
halo_fill_(color(255,255,255)),
|
halo_fill_(color(255,255,255)),
|
||||||
halo_radius_(0),
|
halo_radius_(0.0),
|
||||||
label_p_(POINT_PLACEMENT),
|
label_p_(POINT_PLACEMENT),
|
||||||
anchor_(0.0,0.5),
|
anchor_(0.0,0.5),
|
||||||
avoid_edges_(false),
|
avoid_edges_(false),
|
||||||
|
@ -138,7 +138,7 @@ text_symbolizer::text_symbolizer(expression_ptr name, float size, color const& f
|
||||||
max_char_angle_delta_(22.5 * M_PI/180.0),
|
max_char_angle_delta_(22.5 * M_PI/180.0),
|
||||||
fill_(fill),
|
fill_(fill),
|
||||||
halo_fill_(color(255,255,255)),
|
halo_fill_(color(255,255,255)),
|
||||||
halo_radius_(0),
|
halo_radius_(0.0),
|
||||||
label_p_(POINT_PLACEMENT),
|
label_p_(POINT_PLACEMENT),
|
||||||
anchor_(0.0,0.5),
|
anchor_(0.0,0.5),
|
||||||
avoid_edges_(false),
|
avoid_edges_(false),
|
||||||
|
|
Loading…
Reference in a new issue