aboutsummaryrefslogtreecommitdiffstats
path: root/tests/parser/fileContentHandlerTest.cpp
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2013-11-21 21:16:57 +0000
committerVincent Richard <[email protected]>2013-11-21 21:16:57 +0000
commitf9913fa28a27f23fde2d4956c62cbb2fb2bc2ee8 (patch)
tree2bdc90e361a8f6e0a81164cf67afec9f78f9b959 /tests/parser/fileContentHandlerTest.cpp
parentPer-protocol include files. (diff)
downloadvmime-f9913fa28a27f23fde2d4956c62cbb2fb2bc2ee8.tar.gz
vmime-f9913fa28a27f23fde2d4956c62cbb2fb2bc2ee8.zip
Boost/C++11 shared pointers.
Diffstat (limited to 'tests/parser/fileContentHandlerTest.cpp')
-rw-r--r--tests/parser/fileContentHandlerTest.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/parser/fileContentHandlerTest.cpp b/tests/parser/fileContentHandlerTest.cpp
index b7373959..9d1459db 100644
--- a/tests/parser/fileContentHandlerTest.cpp
+++ b/tests/parser/fileContentHandlerTest.cpp
@@ -38,7 +38,7 @@ VMIME_TEST_SUITE_BEGIN(fileContentHandlerTest)
VMIME_TEST_LIST_END
- vmime::ref <vmime::utility::file> testFile;
+ vmime::shared_ptr <vmime::utility::file> testFile;
vmime::string testDataEncoded, testDataDecoded;
@@ -50,7 +50,7 @@ VMIME_TEST_SUITE_BEGIN(fileContentHandlerTest)
std::ostringstream testFilePath;
testFilePath << "/tmp/vmime_test_" << (rand() % 999999999);
- vmime::ref <vmime::utility::fileSystemFactory> fsf =
+ vmime::shared_ptr <vmime::utility::fileSystemFactory> fsf =
vmime::platform::getHandler()->getFileSystemFactory();
testFile = fsf->create(fsf->stringToPath(testFilePath.str()));
@@ -61,7 +61,7 @@ VMIME_TEST_SUITE_BEGIN(fileContentHandlerTest)
void tearDown()
{
testFile->remove();
- testFile = NULL;
+ testFile = vmime::null;
}