Return-Path: Delivered-To: apmail-activemq-commits-archive@www.apache.org Received: (qmail 66541 invoked from network); 26 Jul 2007 23:01:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Jul 2007 23:01:28 -0000 Received: (qmail 44679 invoked by uid 500); 26 Jul 2007 23:01:29 -0000 Delivered-To: apmail-activemq-commits-archive@activemq.apache.org Received: (qmail 44624 invoked by uid 500); 26 Jul 2007 23:01:29 -0000 Mailing-List: contact commits-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list commits@activemq.apache.org Received: (qmail 44615 invoked by uid 99); 26 Jul 2007 23:01:29 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Jul 2007 16:01:29 -0700 X-ASF-Spam-Status: No, hits=-99.5 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Jul 2007 16:01:28 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id C4C6B1A981A; Thu, 26 Jul 2007 16:01:07 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r560028 - /activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/lang/Boolean.cpp Date: Thu, 26 Jul 2007 23:01:07 -0000 To: commits@activemq.apache.org From: tabish@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20070726230107.C4C6B1A981A@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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"; }