← Back to team overview

kicad-developers team mailing list archive

[PATCH] -Wcatch-value in kicad2step.cpp

 

Hi,

Another -Wcatch-value warning, this time in kicad2step.cpp.

Cheers,

John
From 7f1b0be567101647a31f1b4cc69c0d05cf441d40 Mon Sep 17 00:00:00 2001
From: John Beard <john.j.beard@xxxxxxxxx>
Date: Thu, 26 Jul 2018 13:37:44 +0100
Subject: [PATCH] Fix -Wcatch-value in kicad2step.cpp

---
 utils/kicad2step/kicad2step.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/utils/kicad2step/kicad2step.cpp b/utils/kicad2step/kicad2step.cpp
index 51d0eb57e..9574d43eb 100644
--- a/utils/kicad2step/kicad2step.cpp
+++ b/utils/kicad2step/kicad2step.cpp
@@ -296,7 +296,7 @@ int KICAD2MCAD::OnRun()
             if( !res )
                 return -1;
         }
-        catch( Standard_Failure e )
+        catch( const Standard_Failure& e )
         {
             e.Print( std::cerr );
             return -1;
-- 
2.17.1


Follow ups