From cbc10565ee8cb49404caa636ac88c5bddea08c58 Mon Sep 17 00:00:00 2001 From: Michael Andres Date: Tue, 27 Aug 2013 19:15:58 +0200 Subject: [PATCH] fix PublicKey api --- zypp/PublicKey.cc | 4 ++-- zypp/PublicKey.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/zypp/PublicKey.cc b/zypp/PublicKey.cc index 6996cd1..80985bf 100644 --- a/zypp/PublicKey.cc +++ b/zypp/PublicKey.cc @@ -457,10 +457,10 @@ namespace zypp 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 ) diff --git a/zypp/PublicKey.h b/zypp/PublicKey.h index 5f81d13..9ba6bad 100644 --- a/zypp/PublicKey.h +++ b/zypp/PublicKey.h @@ -262,8 +262,8 @@ namespace zypp const std::list & 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; -- 2.7.4