From d21f78edf19d3af1495412498946c187f7e325da Mon Sep 17 00:00:00 2001 From: Alexander Grund Date: Sat, 5 Sep 2020 15:00:19 +0200 Subject: [PATCH] Remove "using namespace mock_test" from patterns_retrieve_cref.cpp --- doc/example/patterns_retrieve_cref.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/doc/example/patterns_retrieve_cref.cpp b/doc/example/patterns_retrieve_cref.cpp index 287bf03..439585f 100644 --- a/doc/example/patterns_retrieve_cref.cpp +++ b/doc/example/patterns_retrieve_cref.cpp @@ -7,7 +7,7 @@ // http://www.boost.org/LICENSE_1_0.txt) //[ retrieve_cref_problem -namespace mock_test +namespace { class base_class { @@ -26,7 +26,7 @@ namespace mock_test } //] -namespace mock_test +namespace { my_class::my_class( base_class& b): b(b){} void my_class::process() @@ -41,7 +41,7 @@ namespace mock_test #include #include -namespace mock_test +namespace { MOCK_BASE_CLASS( mock_base_class, base_class ) { @@ -51,7 +51,6 @@ namespace mock_test BOOST_AUTO_TEST_CASE( method_is_called_two_times_with_the_same_value ) { - using namespace mock_test; mock_base_class mock; my_class c( mock ); int value;