X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FInput%2FFGLinuxEventInput.cxx;h=43256aadd485a167c2042eb2c215d9e94f517bf6;hb=3d4806adbe6705f785fd950bd4b4afde1cb4f8d2;hp=deff1b88fde701fb2241ee807d39f2447e7fff7a;hpb=b796df3bd7d8fa6998a30ed033198a41a63a32b7;p=flightgear.git diff --git a/src/Input/FGLinuxEventInput.cxx b/src/Input/FGLinuxEventInput.cxx index deff1b88f..43256aadd 100644 --- a/src/Input/FGLinuxEventInput.cxx +++ b/src/Input/FGLinuxEventInput.cxx @@ -42,7 +42,7 @@ struct TypeCode { return (unsigned long)type << 16 | (unsigned long)code; } - bool operator < ( const TypeCode other) const { + bool operator < ( const TypeCode & other) const { return hashCode() < other.hashCode(); } }; @@ -436,7 +436,7 @@ const char * FGLinuxInputDevice::TranslateEventName( FGEventData & eventData ) return EVENT_NAME_BY_TYPE[typeCode]; } -void FGLinuxInputDevice::SetDevname( std::string name ) +void FGLinuxInputDevice::SetDevname( const std::string & name ) { this->devname = name; }