diff --git a/pcbnew/kicad_plugin.cpp b/pcbnew/kicad_plugin.cpp index a1f65e071d..0c58a5f62a 100644 --- a/pcbnew/kicad_plugin.cpp +++ b/pcbnew/kicad_plugin.cpp @@ -1347,7 +1347,7 @@ void PCB_IO::format( D_PAD* aPad, int aNestLevel ) const int nested_level = aNestLevel+2; // Output all basic shapes - for( const std::shared_ptr primitive : aPad->GetPrimitives() ) + for( const std::shared_ptr& primitive : aPad->GetPrimitives() ) { m_out->Print( 0, "\n");