@@ -71,10 +71,10 @@ class KICAD_EXPORT Pin
7171 NonLogic
7272 };
7373
74- QString name () const ;
74+ const QString & name () const ;
7575 void setName (const QString &name);
7676
77- QPoint pos () const ;
77+ const QPoint & pos () const ;
7878 void setPos (const QPoint &pos);
7979 void setPos (int x, int y);
8080
@@ -83,12 +83,12 @@ class KICAD_EXPORT Pin
8383 Direction direction () const ;
8484 void setDirection (Pin::Direction direction);
8585
86- QString padName () const ;
86+ const QString & padName () const ;
8787 void setPadName (const QString &padname);
8888
8989 PinType pinType () const ;
9090 static QString pinTypeDesc (Pin::PinType pinType);
91- void setPinType (const PinType & pinType);
91+ void setPinType (PinType pinType);
9292
9393 ElectricalType electricalType () const ;
9494 static QString electricalTypeDesc (Pin::ElectricalType electricalType);
@@ -106,13 +106,13 @@ class KICAD_EXPORT Pin
106106 int length () const ;
107107 void setLength (int length);
108108
109- QString className () const ;
109+ const QString & className () const ;
110110 void setClassName (const QString &className);
111111
112112 Component *component () const ;
113113 void setComponent (Component *component);
114114
115- friend bool operator <(const Pin &pin1, const Pin &pin );
115+ friend bool operator <(const Pin &pin1, const Pin &pin2 );
116116 friend bool operator ==(const Pin &pin1, const Pin &pin2);
117117
118118private:
0 commit comments