activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r560028 - /activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/lang/Boolean.cpp
Date Thu, 26 Jul 2007 23:01:07 GMT
Author: tabish
Date: Thu Jul 26 16:01:07 2007
New Revision: 560028

URL: http://svn.apache.org/viewvc?view=rev&rev=560028
Log: (empty)

Modified:
    activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/lang/Boolean.cpp

Modified: activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/lang/Boolean.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/lang/Boolean.cpp?view=diff&rev=560028&r1=560027&r2=560028
==============================================================================
--- activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/lang/Boolean.cpp (original)
+++ activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/lang/Boolean.cpp Thu Jul 26 16:01:07
2007
@@ -48,9 +48,7 @@
 
 ////////////////////////////////////////////////////////////////////////////////
 std::string Boolean::toString() const {
-    std::ostringstream ostream;
-    ostream << std::boolalpha << this->value;
-    return ostream.str();
+    return this->value ? "true" : "false";
 }
 
 ////////////////////////////////////////////////////////////////////////////////
@@ -74,7 +72,5 @@
 
 ////////////////////////////////////////////////////////////////////////////////
 std::string Boolean::toString( bool value ) {
-    std::ostringstream ostream;
-    ostream << std::boolalpha << value;
-    return ostream.str();
+    return value ? "true" : "false";
 }



Mime
View raw message