[asterisk-scf-commits] asterisk-scf/integration/util-cpp.git branch "route_replica" updated.

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Mon Apr 25 11:10:53 CDT 2011


branch "route_replica" has been updated
       via  ba171d9e8fa0a15a43dd11400dbb150a9ce53c40 (commit)
      from  91910645e053e30209cac7dd747117da34b813ed (commit)

Summary of changes:
 .../AsteriskSCF/StateMachine/SimpleStateMachine.h  |   28 ++++++++++----------
 1 files changed, 14 insertions(+), 14 deletions(-)


- Log -----------------------------------------------------------------
commit ba171d9e8fa0a15a43dd11400dbb150a9ce53c40
Author: Ken Hunt <ken.hunt at digium.com>
Date:   Mon Apr 25 11:10:25 2011 -0500

    Corrected shadow template param problem.

diff --git a/StateMachine/include/AsteriskSCF/StateMachine/SimpleStateMachine.h b/StateMachine/include/AsteriskSCF/StateMachine/SimpleStateMachine.h
index 58e9a0a..f6cbe88 100644
--- a/StateMachine/include/AsteriskSCF/StateMachine/SimpleStateMachine.h
+++ b/StateMachine/include/AsteriskSCF/StateMachine/SimpleStateMachine.h
@@ -186,12 +186,12 @@ private:
     /**
      * Functor for forwarding stateExecutionStart() notices.
      */
-    template<typename S> 
+    template<typename T> 
     class ExecutionStartNotice
     {
-        // Types: S - State
+        // Types: T - State
     public:
-        ExecutionStartNotice(S state) : mState(state) {}
+        ExecutionStartNotice(T state) : mState(state) {}
         ~ExecutionStartNotice() {}
         void operator() (boost::shared_ptr<StateMachineListener >& x)
         {
@@ -203,7 +203,7 @@ private:
             {
             }
         }
-        S mState;
+        T mState;
     };
 
     /** 
@@ -218,12 +218,12 @@ private:
     /**
      * Functor for forwarding stateExecutionComplete() notices.
      */
-    template<typename S> 
+    template<typename T> 
     class ExecutionCompleteNotice
     {
-        // Types: S - State
+        // Types: T - State
     public:
-        ExecutionCompleteNotice(S state) : mState(state) {}
+        ExecutionCompleteNotice(T state) : mState(state) {}
         ~ExecutionCompleteNotice() {}
         void operator() (boost::shared_ptr<StateMachineListener >& x)
         {
@@ -235,7 +235,7 @@ private:
             {
             }
         }
-        S mState;
+        T mState;
     };
 
     /** 
@@ -249,12 +249,12 @@ private:
     /**
      * Functor for forwarding stateTransition() notices.
      */
-    template<typename S> 
+    template<typename T> 
     class TransitionNotice
     {
-        // Types: S - State
+        // Types: T - State
     public:
-        TransitionNotice(S oldState, S newState) : mOldState(oldState), mNewState(newState) {}
+        TransitionNotice(T oldState, T newState) : mOldState(oldState), mNewState(newState) {}
         ~TransitionNotice() {}
         void operator() (boost::shared_ptr<StateMachineListener >& x)
         {
@@ -266,8 +266,8 @@ private:
             {
             }
         }
-        S mOldState;
-        S mNewState;
+        T mOldState;
+        T mNewState;
     };
 
     /** 
@@ -281,7 +281,7 @@ private:
     /**
      * Functor for forwarding shutdown() notices.
      */
-    template<typename S> 
+    template<typename T> 
     class ShutdownNotice
     {
         // Types: S - State

-----------------------------------------------------------------------


-- 
asterisk-scf/integration/util-cpp.git



More information about the asterisk-scf-commits mailing list