diff options
author | Remko Tronçon <git@el-tramo.be> | 2009-07-14 19:33:05 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2009-07-14 19:33:05 (GMT) |
commit | d2625df30861a4caa984031a6990d19dfebc3367 (patch) | |
tree | 9f6b36168d2a417f0e4ef393b099428c2024223e /Swiften/QA/NetworkTest | |
parent | ee3a46975986865fe5064f9d87a27277fc6c235a (diff) | |
download | swift-contrib-d2625df30861a4caa984031a6990d19dfebc3367.zip swift-contrib-d2625df30861a4caa984031a6990d19dfebc3367.tar.bz2 |
Make all Connection instances shared_ptrs.
Diffstat (limited to 'Swiften/QA/NetworkTest')
-rw-r--r-- | Swiften/QA/NetworkTest/BoostConnectionTest.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Swiften/QA/NetworkTest/BoostConnectionTest.cpp b/Swiften/QA/NetworkTest/BoostConnectionTest.cpp index 6090a97..d29739e 100644 --- a/Swiften/QA/NetworkTest/BoostConnectionTest.cpp +++ b/Swiften/QA/NetworkTest/BoostConnectionTest.cpp @@ -1,5 +1,6 @@ #include <cppunit/extensions/HelperMacros.h> #include <cppunit/extensions/TestFactoryRegistry.h> +#include <boost/shared_ptr.hpp> #include "Swiften/Base/String.h" #include "Swiften/Base/sleep.h" @@ -31,14 +32,14 @@ class BoostConnectionTest : public CppUnit::TestFixture { void testDestructor() { { std::string domain("el-tramo.be"); - std::auto_ptr<BoostConnection> testling(new BoostConnection(&boostIOServiceThread_->getIOService())); + boost::shared_ptr<BoostConnection> testling(new BoostConnection(&boostIOServiceThread_->getIOService())); testling->connect(domain); } } void testDestructor_PendingEvents() { { - std::auto_ptr<BoostConnection> testling(new BoostConnection(&boostIOServiceThread_->getIOService())); + boost::shared_ptr<BoostConnection> testling(new BoostConnection(&boostIOServiceThread_->getIOService())); testling->connect("el-tramo.be"); while (!eventLoop_->hasEvents()) { Swift::sleep(10); |