Browse Source

Fix minor Coverity warnings

6.0.7
jean-pierre charras 5 years ago
parent
commit
9a0f9575b6
  1. 6
      pcbnew/import_gfx/svg_import_plugin.h
  2. 4
      pcbnew/plugins/cadstar/cadstar_pcb_archive_loader.cpp

6
pcbnew/import_gfx/svg_import_plugin.h

@ -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";

4
pcbnew/plugins/cadstar/cadstar_pcb_archive_loader.cpp

@ -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() );

Loading…
Cancel
Save