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

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Fri May 4 10:58:12 CDT 2012


branch "retry_deux" has been updated
       via  adc2491f9e90e8d81d61eea9329416fc8df34e21 (commit)
      from  23e022af80f56216670e777d79b850451d06451b (commit)

Summary of changes:
 src/Operations/OperationContext.cpp |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)


- Log -----------------------------------------------------------------
commit adc2491f9e90e8d81d61eea9329416fc8df34e21
Author: Brent Eagles <beagles at digium.com>
Date:   Fri May 4 13:25:02 2012 -0230

    Change the way new calculated operation contexts are created. They are now
    cloned from the source to preserve runtime type if the context was an
    instance of a subclass of OperationContext.

diff --git a/src/Operations/OperationContext.cpp b/src/Operations/OperationContext.cpp
index 58fc3f9..b338425 100755
--- a/src/Operations/OperationContext.cpp
+++ b/src/Operations/OperationContext.cpp
@@ -56,8 +56,10 @@ OperationContextPtr calculateOperationContext(
     const std::string& modifier)
 {
     std::string calculateId = sourceContext->id + "." + modifier;
-    
-    return new OperationContext(calculateId, sourceContext->transactionId);
+    OperationContextPtr result = OperationContextPtr::dynamicCast(
+        sourceContext->ice_clone());
+    result->id = calculateId;
+    return result; 
 }
 
 } // End namespace Operations

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


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



More information about the asterisk-scf-commits mailing list