std::string PublicKey::asString() const
{ return keyData().asString(); }
- bool PublicKey::operator==( PublicKey rhs ) const
+ bool PublicKey::operator==( const PublicKey & rhs ) const
{ return rhs.keyData() == keyData(); }
- bool PublicKey::operator==( std::string sid ) const
+ bool PublicKey::operator==( const std::string & sid ) const
{ return sid == id(); }
std::ostream & dumpOn( std::ostream & str, const PublicKey & obj )
const std::list<PublicKeyData> & hiddenKeys() const;
public:
- bool operator==( PublicKey rhs ) const; // FIXME: change arg to const&
- bool operator==( std::string sid ) const; // FIXME: change arg to const&
+ bool operator==( const PublicKey & rhs ) const;
+ bool operator==( const std::string & sid ) const;
private:
friend class KeyRing;