← Back to team overview

kicad-developers team mailing list archive

[PATCH] Add return value to SCH_PIN::operator=

 

---
 eeschema/sch_pin.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/eeschema/sch_pin.cpp b/eeschema/sch_pin.cpp
index 62e5d48c6f..0e9facd35d 100644
--- a/eeschema/sch_pin.cpp
+++ b/eeschema/sch_pin.cpp
@@ -50,6 +50,7 @@ SCH_PIN& SCH_PIN::operator=( const SCH_PIN& aPin )
     m_libPin = aPin.m_libPin;
     m_position = aPin.m_position;
     m_isDangling = aPin.m_isDangling;
+    return *this;
 }
 
 

Follow ups