activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r1463786 - /activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/MessageId.cpp
Date Tue, 02 Apr 2013 22:57:02 GMT
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;



Mime
View raw message