From 77d72fb852839914394e3c4d49839d204e2de7a3 Mon Sep 17 00:00:00 2001 From: Phil Nash Date: Wed, 20 Apr 2011 22:33:23 +0100 Subject: [PATCH] Qualified Catch::toSting --- internal/catch_capture.hpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/internal/catch_capture.hpp b/internal/catch_capture.hpp index 55980469..f1a9fbc1 100644 --- a/internal/catch_capture.hpp +++ b/internal/catch_capture.hpp @@ -127,7 +127,7 @@ inline std::string toString const char* const value ) { - return value ? toString( std::string( value ) ) : std::string( "{null string}" ); + return value ? Catch::toString( std::string( value ) ) : std::string( "{null string}" ); } /////////////////////////////////////////////////////////////////////////////// @@ -136,7 +136,7 @@ inline std::string toString char* const value ) { - return toString( static_cast( value ) ); + return Catch::toString( static_cast( value ) ); } /////////////////////////////////////////////////////////////////////////////// @@ -218,7 +218,7 @@ inline std::string toString T* p ) { - return toString( static_cast( p ) ); + return Catch::toString( static_cast( p ) ); } /////////////////////////////////////////////////////////////////////////////// @@ -228,7 +228,7 @@ inline std::string toString const T* p ) { - return toString( static_cast( const_cast( p ) ) ); + return Catch::toString( static_cast( const_cast( p ) ) ); } struct TestFailureException @@ -312,7 +312,7 @@ private: bool result ) { - m_lhs = toString( result ); + m_lhs = Catch::toString( result ); m_op = m_isNot ? "!" : ""; setResultType( result ? ResultWas::Ok : ResultWas::ExpressionFailed ); return *this; @@ -327,8 +327,8 @@ private: ) { setResultType( Internal::compare( lhs, rhs ) ? ResultWas::Ok : ResultWas::ExpressionFailed ); - m_lhs = toString( lhs ); - m_rhs = toString( rhs ); + m_lhs = Catch::toString( lhs ); + m_rhs = Catch::toString( rhs ); m_op = Internal::OperatorTraits::getName(); return *this; }