You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ta...@apache.org on 2013/04/03 00:57:02 UTC

svn commit: r1463786 - /activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/MessageId.cpp

Author: tabish
Date: Tue Apr  2 22:57:01 2013
New Revision: 1463786

URL: http://svn.apache.org/r1463786
Log:
Better toString impl

Modified:
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/MessageId.cpp

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/MessageId.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/MessageId.cpp?rev=1463786&r1=1463785&r2=1463786&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/MessageId.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/MessageId.cpp Tue Apr  2 22:57:01 2013
@@ -132,11 +132,9 @@ unsigned char MessageId::getDataStructur
 ////////////////////////////////////////////////////////////////////////////////
 std::string MessageId::toString() const {
 
-
-    if( key == "" ) {
-        this->key = this->producerId->toString() + ":" + 
-                    Long::toString(this->producerSequenceId) + ":" + 
-                    Long::toString(this->brokerSequenceId);
+    if (key.empty()) {
+        this->key = this->producerId->toString() + ":" +
+                    Long::toString(this->producerSequenceId);
     }
 
     return this->key;