Update catch.hpp

add const ref to function parameters
This commit is contained in:
Tocic 2017-03-04 17:53:49 +02:00 committed by GitHub
parent b4c9bf5802
commit c0383a46f6

View File

@ -10896,7 +10896,7 @@ namespace Catch {
stream << result.getSourceInfo() << ':';
}
void printResultType( Colour::Code colour, std::string passOrFail ) const {
void printResultType( Colour::Code colour, std::string const& passOrFail ) const {
if( !passOrFail.empty() ) {
{
Colour colourGuard( colour );
@ -10906,7 +10906,7 @@ namespace Catch {
}
}
void printIssue( std::string issue ) const {
void printIssue( std::string const& issue ) const {
stream << ' ' << issue;
}