From 34a4e00031cfaa2bd51987a1a29ed2f36ca693cb Mon Sep 17 00:00:00 2001 From: mat007 Date: Tue, 13 Aug 2013 21:43:54 +0000 Subject: [PATCH] Refactoring git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@685 860be788-9bd5-4423-9f1e-828f051e677b --- turtle/detail/expectation_base.hpp | 12 ++++++------ turtle/detail/function_impl_template.hpp | 5 +++-- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/turtle/detail/expectation_base.hpp b/turtle/detail/expectation_base.hpp index ba77849..ba5d5db 100644 --- a/turtle/detail/expectation_base.hpp +++ b/turtle/detail/expectation_base.hpp @@ -10,8 +10,8 @@ #define MOCK_EXPECTATION_BASE_HPP_INCLUDED #include "../config.hpp" -#include "invocation.hpp" #include "../sequence.hpp" +#include "invocation.hpp" #include #include @@ -22,11 +22,6 @@ namespace detail class expectation_base { public: - expectation_base() - : i_( boost::make_shared< unlimited >() ) - , file_( "unknown location" ) - , line_( 0 ) - {} void set_location( const char* file, int line ) { file_ = file; @@ -66,6 +61,11 @@ namespace detail } protected: + expectation_base() + : i_( boost::make_shared< unlimited >() ) + , file_( "unknown location" ) + , line_( 0 ) + {} ~expectation_base() { for( sequences_cit it = sequences_.begin(); diff --git a/turtle/detail/function_impl_template.hpp b/turtle/detail/function_impl_template.hpp index 18dd5f7..db5c403 100644 --- a/turtle/detail/function_impl_template.hpp +++ b/turtle/detail/function_impl_template.hpp @@ -39,8 +39,9 @@ namespace detail public: typedef MOCK_ERROR_POLICY< R > error_type; - typedef expectation< R ( BOOST_PP_ENUM_PARAMS(MOCK_NUM_ARGS, T) ) - > expectation_type; + typedef expectation< + R ( BOOST_PP_ENUM_PARAMS(MOCK_NUM_ARGS, T) ) + > expectation_type; public: function_impl()