[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 Apr 12 16:35:54 CDT 2011


branch "master" has been updated
       via  d7418a0d23a8a23431e859442c782501abfc0553 (commit)
       via  7a25b8073e1e0d2bb2391a3feafb61b6bdacb380 (commit)
      from  6ced932f19f094541afd5c7ef8b069ea83f26438 (commit)

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


- Log -----------------------------------------------------------------
commit d7418a0d23a8a23431e859442c782501abfc0553
Merge: 7a25b80 6ced932
Author: Kevin P. Fleming <kpfleming at digium.com>
Date:   Tue Apr 12 16:35:43 2011 -0500

    Merge branch 'master' of git.asterisk.org:asterisk-scf/release/sip


commit 7a25b8073e1e0d2bb2391a3feafb61b6bdacb380
Author: Kevin P. Fleming <kpfleming at digium.com>
Date:   Tue Apr 12 16:35:37 2011 -0500

    Resolve a variable shadowing warning.

diff --git a/src/PJSipSessionModule.cpp b/src/PJSipSessionModule.cpp
index 58a30c5..de17ddc 100644
--- a/src/PJSipSessionModule.cpp
+++ b/src/PJSipSessionModule.cpp
@@ -1151,8 +1151,7 @@ void PJSipSessionModule::invOnMediaUpdate(pjsip_inv_session *inv, pj_status_t st
                 // format
                 if (service != 0)
                 {
-                    FormatPtr format = FormatPtr::dynamicCast(service->getFormat(params));
-                    formats.push_back(format);
+                    formats.push_back(FormatPtr::dynamicCast(service->getFormat(params)));
                 }
             }
             catch (...)

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


-- 
asterisk-scf/release/sip.git



More information about the asterisk-scf-commits mailing list