[cpp-sp COMMIT] in /branches/REL_2/shibsp: TransactionLog.h impl/TransactionLog.cpp

noreply at shibboleth.net noreply at shibboleth.net
Mon Feb 13 02:34:04 GMT 2012


Author: scantor
Date: Mon Feb 13 02:34:04 2012
New Revision: 3580

URL: http://svn.shibboleth.net/view/cpp-sp?rev=3580&view=rev
Log:
Used scoped_ptr for lock

Modified:
    branches/REL_2/shibsp/TransactionLog.h
    branches/REL_2/shibsp/impl/TransactionLog.cpp

Modified: branches/REL_2/shibsp/TransactionLog.h
URL: http://svn.shibboleth.net/view/cpp-sp/branches/REL_2/shibsp/TransactionLog.h?rev=3580&r1=3579&r2=3580&view=diff
==============================================================================
--- branches/REL_2/shibsp/TransactionLog.h (original)
+++ branches/REL_2/shibsp/TransactionLog.h Mon Feb 13 02:34:04 2012
@@ -35,6 +35,7 @@
 #include <map>
 #include <vector>
 #include <iostream>
+#include <boost/scoped_ptr.hpp>
 
 namespace xmltooling {
     class XMLTOOL_API Mutex;
@@ -169,7 +170,7 @@
         virtual void write(const Event& e);
 
     private:
-        xmltooling::Mutex* m_lock;
+        boost::scoped_ptr<xmltooling::Mutex> m_lock;
         std::string m_absent;
         std::vector<std::string> m_formatting;
     };

Modified: branches/REL_2/shibsp/impl/TransactionLog.cpp
URL: http://svn.shibboleth.net/view/cpp-sp/branches/REL_2/shibsp/impl/TransactionLog.cpp?rev=3580&r1=3579&r2=3580&view=diff
==============================================================================
--- branches/REL_2/shibsp/impl/TransactionLog.cpp (original)
+++ branches/REL_2/shibsp/impl/TransactionLog.cpp Mon Feb 13 02:34:04 2012
@@ -113,7 +113,6 @@
 
 TransactionLog::~TransactionLog()
 {
-    delete m_lock;
 }
 
 Lockable* TransactionLog::lock()



More information about the commits mailing list