Author: tabish
Date: Fri Apr 5 20:11:34 2013
New Revision: 1465111
URL: http://svn.apache.org/r1465111
Log:
Code fixups
Modified:
activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/LocalTransactionId.cpp
activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/MessageId.cpp
Modified:
activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/LocalTransactionId.cpp
URL:
http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/LocalTransactionId.cpp?rev=1465111&r1=1465110&r2=1465111&view=diff
==============================================================================
---
activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/LocalTransactionId.cpp
(original)
+++
activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/LocalTransactionId.cpp
Fri Apr 5 20:11:34 2013
@@ -100,16 +100,9 @@ std::string LocalTransactionId::toString
ostringstream stream;
- stream << "LocalTransactionId { ";
- stream << "Value = " << this->getValue();
- stream << ", ";
- stream << "ConnectionId = ";
- if (this->getConnectionId() != NULL) {
- stream << this->getConnectionId()->toString();
- } else {
- stream << "NULL";
- }
- stream << " }";
+ stream << "TX:"
+ << this->connectionId->toString() << ":"
+ << this->value;
return stream.str();
}
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=1465111&r1=1465110&r2=1465111&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
Fri Apr 5 20:11:34 2013
@@ -133,7 +133,7 @@ unsigned char MessageId::getDataStructur
std::string MessageId::toString() const {
if (key.empty()) {
- this->key = this->producerId->toString() + ":" +
+ this->key = this->producerId->toString() + ":" +
Long::toString(this->producerSequenceId);
}