mirror of
https://github.com/catchorg/Catch2.git
synced 2025-09-24 13:35:40 +02:00
Changed some std::string args to char* to improve compile time
This commit is contained in:
@@ -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 )
|
||||
{}
|
||||
|
||||
|
Reference in New Issue
Block a user