Fix compil warnings.
This commit is contained in:
parent
b622e3a3f7
commit
ac71227e75
|
@ -593,7 +593,6 @@ void TransformArcToPolygon( SHAPE_POLY_SET& aBuffer, const VECTOR2I& aStart, con
|
||||||
EDA_ANGLE arc_angle_start = arc.GetStartAngle();
|
EDA_ANGLE arc_angle_start = arc.GetStartAngle();
|
||||||
EDA_ANGLE arc_angle = arc.GetCentralAngle();
|
EDA_ANGLE arc_angle = arc.GetCentralAngle();
|
||||||
EDA_ANGLE arc_angle_end = arc_angle_start + arc_angle;
|
EDA_ANGLE arc_angle_end = arc_angle_start + arc_angle;
|
||||||
EDA_ANGLE sweep = arc_angle < ANGLE_0 ? -ANGLE_180 : ANGLE_180;
|
|
||||||
|
|
||||||
if( arc_angle < ANGLE_0 )
|
if( arc_angle < ANGLE_0 )
|
||||||
{
|
{
|
||||||
|
|
|
@ -222,7 +222,6 @@ std::vector<std::unique_ptr<FOOTPRINT>> CADSTAR_PCB_ARCHIVE_LOADER::LoadLibrary(
|
||||||
retval.emplace_back( footprint );
|
retval.emplace_back( footprint );
|
||||||
}
|
}
|
||||||
|
|
||||||
if( m_board )
|
|
||||||
delete m_board;
|
delete m_board;
|
||||||
|
|
||||||
// Don't delete the generated footprints, but empty the map
|
// Don't delete the generated footprints, but empty the map
|
||||||
|
|
|
@ -197,7 +197,7 @@ namespace Clipper2Lib {
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline Paths64 RectClip(const Rect64& rect,
|
inline Paths64 ExecuteRectClip(const Rect64& rect,
|
||||||
const Paths64& paths, bool convex_only = false)
|
const Paths64& paths, bool convex_only = false)
|
||||||
{
|
{
|
||||||
if (rect.IsEmpty() || paths.empty()) return Paths64();
|
if (rect.IsEmpty() || paths.empty()) return Paths64();
|
||||||
|
@ -205,7 +205,7 @@ namespace Clipper2Lib {
|
||||||
return rc.Execute(paths, convex_only);
|
return rc.Execute(paths, convex_only);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline Paths64 RectClip(const Rect64& rect,
|
inline Paths64 ExecuteRectClip(const Rect64& rect,
|
||||||
const Path64& path, bool convex_only = false)
|
const Path64& path, bool convex_only = false)
|
||||||
{
|
{
|
||||||
if (rect.IsEmpty() || path.empty()) return Paths64();
|
if (rect.IsEmpty() || path.empty()) return Paths64();
|
||||||
|
@ -213,7 +213,7 @@ namespace Clipper2Lib {
|
||||||
return rc.Execute(Paths64{ path }, convex_only);
|
return rc.Execute(Paths64{ path }, convex_only);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline PathsD RectClip(const RectD& rect,
|
inline PathsD ExecuteRectClip(const RectD& rect,
|
||||||
const PathsD& paths, bool convex_only = false, int precision = 2)
|
const PathsD& paths, bool convex_only = false, int precision = 2)
|
||||||
{
|
{
|
||||||
if (rect.IsEmpty() || paths.empty()) return PathsD();
|
if (rect.IsEmpty() || paths.empty()) return PathsD();
|
||||||
|
@ -229,30 +229,30 @@ namespace Clipper2Lib {
|
||||||
rc.Execute(pp, convex_only), 1 / scale, error_code);
|
rc.Execute(pp, convex_only), 1 / scale, error_code);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline PathsD RectClip(const RectD& rect,
|
inline PathsD ExecuteRectClip(const RectD& rect,
|
||||||
const PathD& path, bool convex_only = false, int precision = 2)
|
const PathD& path, bool convex_only = false, int precision = 2)
|
||||||
{
|
{
|
||||||
return RectClip(rect, PathsD{ path }, convex_only, precision);
|
return ExecuteRectClip(rect, PathsD{ path }, convex_only, precision);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline Paths64 RectClipLines(const Rect64& rect, const Paths64& lines)
|
inline Paths64 ExecuteRectClipLines(const Rect64& rect, const Paths64& lines)
|
||||||
{
|
{
|
||||||
if (rect.IsEmpty() || lines.empty()) return Paths64();
|
if (rect.IsEmpty() || lines.empty()) return Paths64();
|
||||||
class RectClipLines rcl(rect);
|
class RectClipLines rcl(rect);
|
||||||
return rcl.Execute(lines);
|
return rcl.Execute(lines);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline Paths64 RectClipLines(const Rect64& rect, const Path64& line)
|
inline Paths64 ExecuteRectClipLines(const Rect64& rect, const Path64& line)
|
||||||
{
|
{
|
||||||
return RectClipLines(rect, Paths64{ line });
|
return ExecuteRectClipLines(rect, Paths64{ line });
|
||||||
}
|
}
|
||||||
|
|
||||||
inline PathsD RectClipLines(const RectD& rect, const PathD& line, int precision = 2)
|
inline PathsD ExecuteRectClipLines(const RectD& rect, const PathD& line, int precision = 2)
|
||||||
{
|
{
|
||||||
return RectClip(rect, PathsD{ line }, precision);
|
return ExecuteRectClip(rect, PathsD{ line }, precision);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline PathsD RectClipLines(const RectD& rect, const PathsD& lines, int precision = 2)
|
inline PathsD ExecuteRectClipLines(const RectD& rect, const PathsD& lines, int precision = 2)
|
||||||
{
|
{
|
||||||
if (rect.IsEmpty() || lines.empty()) return PathsD();
|
if (rect.IsEmpty() || lines.empty()) return PathsD();
|
||||||
int error_code = 0;
|
int error_code = 0;
|
||||||
|
|
Loading…
Reference in New Issue