Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r50751 - sandbox/msm/boost/msm
From: christophe.j.henry_at_[hidden]
Date: 2009-01-24 02:56:50


Author: chenry
Date: 2009-01-24 02:56:49 EST (Sat, 24 Jan 2009)
New Revision: 50751
URL: http://svn.boost.org/trac/boost/changeset/50751

Log:
cleanup (const missing and unused argument)
Text files modified:
   sandbox/msm/boost/msm/state_machine.hpp | 12 ++++++------
   1 files changed, 6 insertions(+), 6 deletions(-)

Modified: sandbox/msm/boost/msm/state_machine.hpp
==============================================================================
--- sandbox/msm/boost/msm/state_machine.hpp (original)
+++ sandbox/msm/boost/msm/state_machine.hpp 2009-01-24 02:56:49 EST (Sat, 24 Jan 2009)
@@ -70,9 +70,9 @@
     // empty implementation for the states not wishing to define an entry condition
     // will not be called polymorphic way
         template <class Event>
- void on_entry(Event const& incomingEvent){}
+ void on_entry(Event const& ){}
         template <class Event>
- void on_exit(Event const& incomingEvent){}
+ void on_exit(Event const& ){}
 };
 typedef boost::shared_ptr<state_base> pstate_base;
 
@@ -254,7 +254,7 @@
     exit_pseudo_state():m_forward(){}
     // by assignments, we keep our forwarding functor unchanged as our containing SM did not change
     exit_pseudo_state(exit_pseudo_state<Composite,Event>& rhs){}
- exit_pseudo_state<Composite,Event>& operator= (const exit_pseudo_state<Composite,Event>& rhs)
+ exit_pseudo_state<Composite,Event>& operator= (const exit_pseudo_state<Composite,Event>& )
     {
         return *this;
     }
@@ -617,7 +617,7 @@
 
     // return the state whose id is passed or 0 if not found
     // caution if you need this, you probably need to define POLYMORPHIC_STATES
- const state_base* get_state_by_id(int id)
+ const state_base* get_state_by_id(int id) const
     {
         typedef typename create_stt<Derived>::type stt;
         typedef typename generate_state_set<stt>::type state_list;
@@ -629,7 +629,7 @@
         return 0;
     }
     // true if the sm is used in another sm
- bool is_contained()
+ bool is_contained() const
     {
         return m_is_included;
     }
@@ -1470,7 +1470,7 @@
 
     // Default no-transition handler. Can be replaced in the Derived SM class.
     template <class Event>
- int no_transition(int state, Event const& e)
+ int no_transition(int state, Event const& )
     {
         BOOST_ASSERT(false);
         return state;


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk