[asterisk-scf-commits] asterisk-scf/release/sip.git branch "master" updated.

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Tue Dec 14 16:41:52 UTC 2010


branch "master" has been updated
       via  33ada269b15d47a1f4cb54b88175be1741074a89 (commit)
      from  a8911b4af0c2ffb706f78848765c82226af87120 (commit)

Summary of changes:
 src/SipStateReplicatorListener.cpp |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)


- Log -----------------------------------------------------------------
commit 33ada269b15d47a1f4cb54b88175be1741074a89
Author: Brent Eagles <beagles at digium.com>
Date:   Tue Dec 14 13:11:37 2010 -0330

    A better fix for the make_pair issue.

diff --git a/src/SipStateReplicatorListener.cpp b/src/SipStateReplicatorListener.cpp
index 725c33f..9f1f3db 100644
--- a/src/SipStateReplicatorListener.cpp
+++ b/src/SipStateReplicatorListener.cpp
@@ -94,9 +94,7 @@ public:
 
                     // Unlike other state items sessions are special in that they create the local class that binds everything together
                     boost::shared_ptr<SipStateReplicatorItem> newitem(new SipStateReplicatorItem());
-                    mStateItems.insert(
-                      std::pair<std::string, boost::shared_ptr<SipStateReplicatorItem> >((*item)->mSessionId, newitem)
-                      );
+                    mStateItems.insert(std::map<std::string, boost::shared_ptr<SipStateReplicatorItem> >::value_type((*item)->mSessionId, newitem));
                     localitem = newitem;
 
                     // Now that all is well we can create an actual session

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


-- 
asterisk-scf/release/sip.git



More information about the asterisk-scf-commits mailing list