You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ta...@apache.org on 2009/12/08 23:09:16 UTC

svn commit: r888593 - /activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Exception.cpp

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;