From b5db11693361de0fb143bc1fb68566eb7b4ee185 Mon Sep 17 00:00:00 2001 From: Alexander Grund Date: Mon, 18 May 2020 10:15:41 +0200 Subject: [PATCH] Use const-ref for instance string --- include/turtle/mock.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/turtle/mock.hpp b/include/turtle/mock.hpp index 0b44e02..4c4c9b0 100644 --- a/include/turtle/mock.hpp +++ b/include/turtle/mock.hpp @@ -63,7 +63,7 @@ mutable mock::detail::function< MOCK_FUNCTION_TYPE((S), tpn) > t##_mock_; \ mock::detail::function< MOCK_FUNCTION_TYPE((S), tpn) >& t##_mock( \ const mock::detail::context&, \ - boost::unit_test::const_string instance ) const \ + const boost::unit_test::const_string& instance ) const \ { \ mock::detail::configure( *this, t##_mock_, \ instance.substr( 0, instance.rfind( BOOST_PP_STRINGIZE(t) ) ), \