← Back to team overview

kicad-developers team mailing list archive

[PATCH 12/16] Make NETLIST_OBJECT::GetConnectionType() const

 

This function does not need to modify object state.
---
 eeschema/class_netlist_object.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/eeschema/class_netlist_object.h b/eeschema/class_netlist_object.h
index 9608f90..403bade 100644
--- a/eeschema/class_netlist_object.h
+++ b/eeschema/class_netlist_object.h
@@ -156,7 +156,7 @@ public:
         m_ConnectionType = aFlg;
     }
 
-    NET_CONNECTION_T GetConnectionType()
+    NET_CONNECTION_T GetConnectionType() const
     {
         return m_ConnectionType;
     }

Follow ups

References