activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r888594 - /activemq/activemq-cpp/branches/activemq-cpp-3.1.x/activemq-cpp/src/main/decaf/lang/Exception.cpp
Date Tue, 08 Dec 2009 22:13:43 GMT
Author: tabish
Date: Tue Dec  8 22:13:42 2009
New Revision: 888594

URL: http://svn.apache.org/viewvc?rev=888594&view=rev
Log:
Clean up the code in the setMark function.

Modified:
    activemq/activemq-cpp/branches/activemq-cpp-3.1.x/activemq-cpp/src/main/decaf/lang/Exception.cpp

Modified: activemq/activemq-cpp/branches/activemq-cpp-3.1.x/activemq-cpp/src/main/decaf/lang/Exception.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/branches/activemq-cpp-3.1.x/activemq-cpp/src/main/decaf/lang/Exception.cpp?rev=888594&r1=888593&r2=888594&view=diff
==============================================================================
--- activemq/activemq-cpp/branches/activemq-cpp-3.1.x/activemq-cpp/src/main/decaf/lang/Exception.cpp
(original)
+++ activemq/activemq-cpp/branches/activemq-cpp-3.1.x/activemq-cpp/src/main/decaf/lang/Exception.cpp
Tue Dec  8 22:13:42 2009
@@ -100,11 +100,11 @@
 void Exception::setMark( const char* file, const int lineNumber ) {
 
     // Add this mark to the end of the stack trace.
-    stackTrace.push_back( std::make_pair( (std::string)file, (int)lineNumber ) );
+    stackTrace.push_back( std::make_pair( std::string( file ), (int)lineNumber ) );
 
-    std::ostringstream stream;
-    stream << "\tFILE: " << stackTrace[stackTrace.size()-1].first;
-    stream << ", LINE: " << stackTrace[stackTrace.size()-1].second;
+    //std::ostringstream stream;
+    //stream << "\tFILE: " << stackTrace[stackTrace.size()-1].first;
+    //stream << ", LINE: " << stackTrace[stackTrace.size()-1].second;
 
     //decaf::util::logger::SimpleLogger logger("com.yadda2");
     //logger.log( stream.str() );



Mime
View raw message