Fix minor Coverity warnings

This commit is contained in:
jean-pierre charras 2021-03-25 09:12:24 +01:00
parent 41839f7e3f
commit 9a0f9575b6
2 changed files with 8 additions and 2 deletions

View File

@ -38,6 +38,12 @@
class SVG_IMPORT_PLUGIN : public GRAPHICS_IMPORT_PLUGIN
{
public:
SVG_IMPORT_PLUGIN():
GRAPHICS_IMPORT_PLUGIN(),
m_parsedImage( nullptr )
{
}
const wxString GetName() const override
{
return "Scalable Vector Graphics";

View File

@ -3212,8 +3212,8 @@ void CADSTAR_PCB_ARCHIVE_LOADER::calculateZonePriorities()
std::map<TEMPLATE_ID, std::set<TEMPLATE_ID>> winningOverlaps;
std::set<std::pair<TEMPLATE_ID, TEMPLATE_ID>> scheduleInferPriorityFromOutline;
// Calculate the intesection between aPolygon and the outline of aZone
auto intersectionArea = [&]( SHAPE_POLY_SET aPolygon, ZONE* aZone ) -> double
// Calculate the intersection between aPolygon and the outline of aZone
auto intersectionArea = [&]( const SHAPE_POLY_SET& aPolygon, ZONE* aZone ) -> double
{
SHAPE_POLY_SET intersectShape( *aZone->Outline() );