Take std::string by const-ref where possible

Most places already do, this brings over some forgotten places.

Also close #842
This commit is contained in:
Martin Hořeňovský
2017-03-06 13:16:43 +01:00
parent 932a405e18
commit e95bf48445
5 changed files with 7 additions and 7 deletions

View File

@@ -157,13 +157,13 @@ namespace Catch {
stream << result.getSourceInfo() << ":";
}
void printResultType( std::string passOrFail ) const {
void printResultType( std::string const& passOrFail ) const {
if( !passOrFail.empty() ) {
stream << passOrFail << ' ' << counter << " -";
}
}
void printIssue( std::string issue ) const {
void printIssue( std::string const& issue ) const {
stream << " " << issue;
}