From 45dd0f025e5c12eebecaccfe15e3cd42ff142057 Mon Sep 17 00:00:00 2001 From: Mathieu Champlon Date: Sat, 23 May 2015 22:22:23 +0200 Subject: [PATCH] Cleaned code --- include/turtle/detail/sequence_impl.hpp | 9 +++++---- include/turtle/sequence.hpp | 1 - 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/turtle/detail/sequence_impl.hpp b/include/turtle/detail/sequence_impl.hpp index ac40080..c7d3ce6 100644 --- a/include/turtle/detail/sequence_impl.hpp +++ b/include/turtle/detail/sequence_impl.hpp @@ -12,7 +12,7 @@ #include "../config.hpp" #include "mutex.hpp" #include -#include +#include #include #include @@ -23,8 +23,10 @@ namespace detail class sequence_impl : private boost::noncopyable { public: - sequence_impl() : mutex_( boost::make_shared< mutex >() ) {} - + sequence_impl() + : mutex_( boost::make_shared< mutex >() ) + {} + void add( void* e ) { lock _( mutex_ ); @@ -57,7 +59,6 @@ namespace detail typedef std::vector< void* > elements_type; elements_type elements_; - const boost::shared_ptr< mutex > mutex_; }; } diff --git a/include/turtle/sequence.hpp b/include/turtle/sequence.hpp index 051d219..28a2ee9 100644 --- a/include/turtle/sequence.hpp +++ b/include/turtle/sequence.hpp @@ -10,7 +10,6 @@ #define MOCK_SEQUENCE_HPP_INCLUDED #include "config.hpp" -#include #include "detail/sequence_impl.hpp" namespace mock