qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kgiu...@apache.org
Subject svn commit: r1303411 - /qpid/trunk/qpid/cpp/src/qpid/broker/MessageGroupManager.h
Date Wed, 21 Mar 2012 14:47:50 GMT
Author: kgiusti
Date: Wed Mar 21 14:47:50 2012
New Revision: 1303411

URL: http://svn.apache.org/viewvc?rev=1303411&view=rev
Log:
QPID-3899: fix the const-ness of the < operator.

Modified:
    qpid/trunk/qpid/cpp/src/qpid/broker/MessageGroupManager.h

Modified: qpid/trunk/qpid/cpp/src/qpid/broker/MessageGroupManager.h
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/qpid/broker/MessageGroupManager.h?rev=1303411&r1=1303410&r2=1303411&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/qpid/broker/MessageGroupManager.h (original)
+++ qpid/trunk/qpid/cpp/src/qpid/broker/MessageGroupManager.h Wed Mar 21 14:47:50 2012
@@ -52,7 +52,7 @@ class MessageGroupManager : public State
             bool                    acquired;
             MessageState() : acquired(false) {}
             MessageState(const qpid::framing::SequenceNumber& p) : position(p), acquired(false)
{}
-            bool operator<(const MessageState& b) { return position < b.position;
}
+            bool operator<(const MessageState& b) const { return position < b.position;
}
         };
         typedef std::deque<MessageState> MessageFifo;
 



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org


Mime
View raw message