[asterisk-scf-commits] asterisk-scf/release/ice-util-cpp.git branch "master" updated.

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Wed Feb 15 15:20:49 CST 2012


branch "master" has been updated
       via  27ee5eaa46137735bde319b02a115bd2bc093c4e (commit)
       via  0260c56584f42d4cd0b6736693672a2c1fdf4659 (commit)
       via  047cb337070751cbbc6303d2c50f3ca6e693ce30 (commit)
      from  7f7102094df3e6156379bf254e8c9ab868f6c90b (commit)

Summary of changes:
 include/AsteriskSCF/Listener/ListenerManager.h |    2 +-
 include/AsteriskSCF/PJLIB/ThreadHook.h         |    6 +++---
 test/WorkQueue/TestSuspendableWorkQueue.cpp    |    2 +-
 test/WorkQueue/TestWorkQueue.cpp               |    2 +-
 4 files changed, 6 insertions(+), 6 deletions(-)


- Log -----------------------------------------------------------------
commit 27ee5eaa46137735bde319b02a115bd2bc093c4e
Author: David M. Lee <dlee at digium.com>
Date:   Wed Feb 15 15:07:20 2012 -0600

    Fixed a few uninitialized variable errors

diff --git a/test/WorkQueue/TestSuspendableWorkQueue.cpp b/test/WorkQueue/TestSuspendableWorkQueue.cpp
index f469cfc..7e6d6a0 100644
--- a/test/WorkQueue/TestSuspendableWorkQueue.cpp
+++ b/test/WorkQueue/TestSuspendableWorkQueue.cpp
@@ -225,7 +225,7 @@ BOOST_AUTO_TEST_CASE(shutdownException)
 
     queue->shutdown();
 
-    bool excepted;
+    bool excepted = false;
     try
     {
         queue->getSize();
diff --git a/test/WorkQueue/TestWorkQueue.cpp b/test/WorkQueue/TestWorkQueue.cpp
index b7d77ef..99dd979 100644
--- a/test/WorkQueue/TestWorkQueue.cpp
+++ b/test/WorkQueue/TestWorkQueue.cpp
@@ -179,7 +179,7 @@ BOOST_AUTO_TEST_CASE(shutdownException)
 
     queue->shutdown();
 
-    bool excepted;
+    bool excepted = false;
     try
     {
         queue->getSize();

commit 0260c56584f42d4cd0b6736693672a2c1fdf4659
Author: David M. Lee <dlee at digium.com>
Date:   Wed Feb 15 15:06:26 2012 -0600

    Fixed uninitialized reference

diff --git a/include/AsteriskSCF/Listener/ListenerManager.h b/include/AsteriskSCF/Listener/ListenerManager.h
index 30eaa78..52d7976 100644
--- a/include/AsteriskSCF/Listener/ListenerManager.h
+++ b/include/AsteriskSCF/Listener/ListenerManager.h
@@ -163,7 +163,7 @@ public:
 
     bool removeListener(const T& listener)
     {
-        T& proxyToUnsubscribe;
+        T proxyToUnsubscribe;
         {
             boost::unique_lock<boost::shared_mutex> lock(mLock);
             typename std::vector<T>::iterator i = std::find(mListeners.begin(), mListeners.end(), listener);

commit 047cb337070751cbbc6303d2c50f3ca6e693ce30
Author: David M. Lee <dlee at digium.com>
Date:   Wed Feb 15 15:03:26 2012 -0600

    Fixed what() overrides for thread hook exceptions
    
    The cv spec must match for function overrides.

diff --git a/include/AsteriskSCF/PJLIB/ThreadHook.h b/include/AsteriskSCF/PJLIB/ThreadHook.h
index 1f35221..b46e0a9 100644
--- a/include/AsteriskSCF/PJLIB/ThreadHook.h
+++ b/include/AsteriskSCF/PJLIB/ThreadHook.h
@@ -40,7 +40,7 @@ public:
     {
     }
 
-    virtual const char* what() throw()
+    virtual const char* what() const throw()
     {
         return "pj_init() returned failure.";
     }
@@ -55,7 +55,7 @@ public:
     {
     }
 
-    virtual const char* what() throw()
+    virtual const char* what() const throw()
     {
         return "pjlib_util_init() returned failure.";
     }
@@ -70,7 +70,7 @@ public:
     {
     }
 
-    virtual const char* what() throw()
+    virtual const char* what() const throw()
     {
         return "pj_thread_register() returned failure.";
     }

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


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



More information about the asterisk-scf-commits mailing list