summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Markmann <tm@ayena.de>2016-04-28 18:45:58 (GMT)
committerTobias Markmann <tm@ayena.de>2016-04-28 18:45:58 (GMT)
commit0709bd664af7a052f2fb7dae2b04e37afed8fdde (patch)
treea0e1112ffae15306c011ce6967d288d12d079e91 /Swiften/QA
parentee2baf882eab488342196a799fe9502bdd5c3c1d (diff)
downloadswift-0709bd664af7a052f2fb7dae2b04e37afed8fdde.zip
swift-0709bd664af7a052f2fb7dae2b04e37afed8fdde.tar.bz2
Change remaining std::auto_ptr usage to std::unique_ptr
Test-Information: Builds and tests pass on Ubuntu 16.04. Change-Id: If8da50619b0e029437b3b9d6b146f2ed49b5bf60
Diffstat (limited to 'Swiften/QA')
-rw-r--r--Swiften/QA/StorageTest/VCardFileStorageTest.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/Swiften/QA/StorageTest/VCardFileStorageTest.cpp b/Swiften/QA/StorageTest/VCardFileStorageTest.cpp
index 0dae2f3..1be2490 100644
--- a/Swiften/QA/StorageTest/VCardFileStorageTest.cpp
+++ b/Swiften/QA/StorageTest/VCardFileStorageTest.cpp
@@ -4,6 +4,7 @@
* See the COPYING file for more information.
*/
+#include <memory>
#include <sstream>
#include <boost/algorithm/string.hpp>
@@ -57,7 +58,7 @@ class VCardFileStorageTest : public CppUnit::TestFixture {
}
void testSetVCard_LargeFilename() {
- std::auto_ptr<VCardFileStorage> testling(createTestling());
+ std::unique_ptr<VCardFileStorage> testling(createTestling());
VCard::ref vcard(new VCard());
vcard->setFullName("Alice In Wonderland");
@@ -83,7 +84,7 @@ class VCardFileStorageTest : public CppUnit::TestFixture {
}
void testGetVCard_LargeFilename() {
- std::auto_ptr<VCardFileStorage> testling(createTestling());
+ std::unique_ptr<VCardFileStorage> testling(createTestling());
VCard::ref vcard(new VCard());
vcard->setFullName("Alice In Wonderland");