activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r888593 - /activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Exception.cpp
Date Tue, 08 Dec 2009 22:09:16 GMT
Author: tabish
Date: Tue Dec  8 22:09:16 2009
New Revision: 888593

URL: http://svn.apache.org/viewvc?rev=888593&view=rev
Log:
change the make_pair call from a std::string cast to a std::string temporary.

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

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Exception.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Exception.cpp?rev=888593&r1=888592&r2=888593&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Exception.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Exception.cpp Tue Dec  8
22:09:16 2009
@@ -100,7 +100,7 @@
 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;



Mime
View raw message