From c0383a46f69ec4b519b3e097b161b10e7ac51b49 Mon Sep 17 00:00:00 2001 From: Tocic Date: Sat, 4 Mar 2017 17:53:49 +0200 Subject: [PATCH] Update catch.hpp add const ref to function parameters --- single_include/catch.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/single_include/catch.hpp b/single_include/catch.hpp index 6f9334ba..63e024b5 100644 --- a/single_include/catch.hpp +++ b/single_include/catch.hpp @@ -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; }