summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2011-05-02 18:17:19 (GMT)
committerRemko Tronçon <git@el-tramo.be>2011-05-02 18:24:14 (GMT)
commit81443e9863763187a4d6e40a5b7c75be6ad39809 (patch)
treec75225e9826b96d1d83c0702dbfa9b3bf1924a15 /Swiften/Roster
parent2d84b0e551a2661c03bdb96f575effb47b22d678 (diff)
downloadswift-contrib-81443e9863763187a4d6e40a5b7c75be6ad39809.zip
swift-contrib-81443e9863763187a4d6e40a5b7c75be6ad39809.tar.bz2
Replace auto_ptr by shared_ptr.
Diffstat (limited to 'Swiften/Roster')
-rw-r--r--Swiften/Roster/UnitTest/XMPPRosterControllerTest.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/Swiften/Roster/UnitTest/XMPPRosterControllerTest.cpp b/Swiften/Roster/UnitTest/XMPPRosterControllerTest.cpp
index e0f2859..cb9f46f 100644
--- a/Swiften/Roster/UnitTest/XMPPRosterControllerTest.cpp
+++ b/Swiften/Roster/UnitTest/XMPPRosterControllerTest.cpp
@@ -58,7 +58,7 @@ class XMPPRosterControllerTest : public CppUnit::TestFixture {
}
void testGet_Response() {
- std::auto_ptr<XMPPRosterController> testling(createController());
+ boost::shared_ptr<XMPPRosterController> testling(createController());
testling->requestRoster();
boost::shared_ptr<RosterPayload> payload = boost::make_shared<RosterPayload>();
@@ -94,7 +94,7 @@ class XMPPRosterControllerTest : public CppUnit::TestFixture {
}
void testGet_NoRosterInStorage() {
- std::auto_ptr<XMPPRosterController> testling(createController());
+ boost::shared_ptr<XMPPRosterController> testling(createController());
testling->setUseVersioning(true);
testling->requestRoster();
@@ -105,7 +105,7 @@ class XMPPRosterControllerTest : public CppUnit::TestFixture {
}
void testGet_NoVersionInStorage() {
- std::auto_ptr<XMPPRosterController> testling(createController());
+ boost::shared_ptr<XMPPRosterController> testling(createController());
testling->setUseVersioning(true);
rosterStorage_->setRoster(boost::make_shared<RosterPayload>());
@@ -117,7 +117,7 @@ class XMPPRosterControllerTest : public CppUnit::TestFixture {
}
void testGet_VersionInStorage() {
- std::auto_ptr<XMPPRosterController> testling(createController());
+ boost::shared_ptr<XMPPRosterController> testling(createController());
testling->setUseVersioning(true);
boost::shared_ptr<RosterPayload> payload(new RosterPayload());
payload->setVersion("foover");
@@ -131,7 +131,7 @@ class XMPPRosterControllerTest : public CppUnit::TestFixture {
}
void testGet_ServerDoesNotSupportVersion() {
- std::auto_ptr<XMPPRosterController> testling(createController());
+ boost::shared_ptr<XMPPRosterController> testling(createController());
boost::shared_ptr<RosterPayload> payload(new RosterPayload());
payload->setVersion("foover");
rosterStorage_->setRoster(payload);
@@ -143,7 +143,7 @@ class XMPPRosterControllerTest : public CppUnit::TestFixture {
}
void testGet_ResponseWithoutNewVersion() {
- std::auto_ptr<XMPPRosterController> testling(createController());
+ boost::shared_ptr<XMPPRosterController> testling(createController());
testling->setUseVersioning(true);
boost::shared_ptr<RosterPayload> storedRoster(new RosterPayload());
storedRoster->setVersion("version10");
@@ -167,7 +167,7 @@ class XMPPRosterControllerTest : public CppUnit::TestFixture {
}
void testGet_ResponseWithNewVersion() {
- std::auto_ptr<XMPPRosterController> testling(createController());
+ boost::shared_ptr<XMPPRosterController> testling(createController());
testling->setUseVersioning(true);
boost::shared_ptr<RosterPayload> storedRoster(new RosterPayload());
storedRoster->setVersion("version10");
@@ -240,7 +240,7 @@ class XMPPRosterControllerTest : public CppUnit::TestFixture {
}
void testRemove_RosterStorageUpdated() {
- std::auto_ptr<XMPPRosterController> testling(createController());
+ boost::shared_ptr<XMPPRosterController> testling(createController());
testling->setUseVersioning(true);
boost::shared_ptr<RosterPayload> storedRoster(new RosterPayload());
storedRoster->setVersion("version10");