diff options
Diffstat (limited to 'qpid/cpp/src/qmf/DataAddr.cpp')
-rw-r--r-- | qpid/cpp/src/qmf/DataAddr.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/qpid/cpp/src/qmf/DataAddr.cpp b/qpid/cpp/src/qmf/DataAddr.cpp index d16e12062e..fb51d5787f 100644 --- a/qpid/cpp/src/qmf/DataAddr.cpp +++ b/qpid/cpp/src/qmf/DataAddr.cpp @@ -36,9 +36,7 @@ DataAddr::~DataAddr() { PI::dtor(*this); } DataAddr& DataAddr::operator=(const DataAddr& s) { return PI::assign(*this, s); } bool DataAddr::operator==(const DataAddr& o) { return *impl == *o.impl; } -bool DataAddr::operator==(const DataAddr& o) const { return *impl == *o.impl; } bool DataAddr::operator<(const DataAddr& o) { return *impl < *o.impl; } -bool DataAddr::operator<(const DataAddr& o) const { return *impl < *o.impl; } DataAddr::DataAddr(const qpid::types::Variant::Map& m) { PI::ctor(*this, new DataAddrImpl(m)); } DataAddr::DataAddr(const string& n, const string& a, uint32_t e) { PI::ctor(*this, new DataAddrImpl(n, a, e)); } @@ -47,7 +45,7 @@ const string& DataAddr::getAgentName() const { return impl->getAgentName(); } uint32_t DataAddr::getAgentEpoch() const { return impl->getAgentEpoch(); } Variant::Map DataAddr::asMap() const { return impl->asMap(); } -bool DataAddrImpl::operator==(const DataAddrImpl& other) const +bool DataAddrImpl::operator==(const DataAddrImpl& other) { return agentName == other.agentName && @@ -56,7 +54,7 @@ bool DataAddrImpl::operator==(const DataAddrImpl& other) const } -bool DataAddrImpl::operator<(const DataAddrImpl& other) const +bool DataAddrImpl::operator<(const DataAddrImpl& other) { if (agentName < other.agentName) return true; if (agentName > other.agentName) return false; |