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

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Tue Nov 30 17:04:36 CST 2010


branch "master" has been updated
       via  4bca5d0f23c4c5273d8f23f6b934144b49ca089f (commit)
      from  93501e90428b9c45b02316d13eee8b087c4fea6c (commit)

Summary of changes:
 src/TestEndpoint.cpp |   13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)


- Log -----------------------------------------------------------------
commit 4bca5d0f23c4c5273d8f23f6b934144b49ca089f
Author: David M. Lee <dlee at digium.com>
Date:   Tue Nov 30 16:47:44 2010 -0600

    Move EndpointLocatorI to anonymous namespace.
    
    Old versions of gcc (v4.1.2) erroneously warn when class members are
    from an anonymous namespace.  While there's technically nothing wrong
    with it, the class EndpointLocatorI is only used in this file, so can
    safely be moved to an anonymous namespace.

diff --git a/src/TestEndpoint.cpp b/src/TestEndpoint.cpp
index 630ea70..e912020 100644
--- a/src/TestEndpoint.cpp
+++ b/src/TestEndpoint.cpp
@@ -515,12 +515,6 @@ public:
 private:
     EndpointManagerPtr mMgr;
 };
-}
-
-namespace AsteriskSCF
-{
-namespace TestUtil
-{
 
 class EndpointLocatorI : public AsteriskSCF::Core::Routing::V1::EndpointLocator
 {
@@ -554,6 +548,13 @@ private:
 
 typedef IceUtil::Handle<EndpointLocatorI> EndpointLocatorIPtr;
 
+}
+
+namespace AsteriskSCF
+{
+namespace TestUtil
+{
+
 AsteriskSCF::Core::Routing::V1::EndpointLocatorPtr TestEndpoint::create(const Ice::ObjectAdapterPtr& adapter, const std::string& id)
 {
 

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


-- 
asterisk-scf/release/test_channel.git



More information about the asterisk-scf-commits mailing list