Changed some std::string args to char* to improve compile time

This commit is contained in:
Phil Nash
2011-01-07 09:38:32 +00:00
parent 896a04f5e8
commit a65f210cb2
4 changed files with 23 additions and 21 deletions

View File

@@ -95,8 +95,8 @@ public:
MutableResultInfo()
{}
MutableResultInfo( const std::string& expr, bool isNot, const std::string& filename, std::size_t line, const std::string& macroName )
: ResultInfo( ( isNot ? "!" : "" ) + expr, ResultWas::Unknown, isNot, filename, line, macroName )
MutableResultInfo( const char* expr, bool isNot, const char* filename, std::size_t line, const char* macroName )
: ResultInfo( expr, ResultWas::Unknown, isNot, filename, line, macroName )
{
}
void setResultType( ResultWas::OfType result )
@@ -138,7 +138,7 @@ private:
class ResultBuilder
{
public:
ResultBuilder( const char* expr, bool isNot, const std::string& filename, std::size_t line, const std::string& macroName )
ResultBuilder( const char* expr, bool isNot, const char* filename, std::size_t line, const char* macroName )
: m_result( expr, isNot, filename, line, macroName )
{}