mirror of
https://github.com/mat007/turtle.git
synced 2026-06-22 12:13:43 +00:00
Merge pull request #84 from Flamefire/constref
Use const-ref for instance string
This commit is contained in:
commit
6b3a447a1b
1 changed files with 1 additions and 1 deletions
|
|
@ -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) ) ), \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue