From 37869c06ce9458a83a649d5bfe3c46a9b546d9c7 Mon Sep 17 00:00:00 2001 From: laurent-richard Date: Wed, 5 Feb 2014 14:23:04 +0100 Subject: [PATCH] Fixed null value in Windows build. --- src/vmime/platforms/windows/windowsFile.cpp | 2 +- src/vmime/platforms/windows/windowsHandler.cpp | 2 +- src/vmime/platforms/windows/windowsSocket.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/vmime/platforms/windows/windowsFile.cpp b/src/vmime/platforms/windows/windowsFile.cpp index 6aa0fea8..0ab90b16 100644 --- a/src/vmime/platforms/windows/windowsFile.cpp +++ b/src/vmime/platforms/windows/windowsFile.cpp @@ -310,7 +310,7 @@ bool windowsFile::exists() const shared_ptr windowsFile::getParent() const { if (m_path.isEmpty()) - return NULL; + return null; else return make_shared (m_path.getParent()); } diff --git a/src/vmime/platforms/windows/windowsHandler.cpp b/src/vmime/platforms/windows/windowsHandler.cpp index 9c96b271..79c46876 100644 --- a/src/vmime/platforms/windows/windowsHandler.cpp +++ b/src/vmime/platforms/windows/windowsHandler.cpp @@ -293,7 +293,7 @@ shared_ptr windowsHandler::getFileSystemFact shared_ptr windowsHandler::getChildProcessFactory() { // TODO: Not implemented - return (NULL); + return null; } #endif diff --git a/src/vmime/platforms/windows/windowsSocket.cpp b/src/vmime/platforms/windows/windowsSocket.cpp index bd20e5d4..f6541558 100644 --- a/src/vmime/platforms/windows/windowsSocket.cpp +++ b/src/vmime/platforms/windows/windowsSocket.cpp @@ -473,7 +473,7 @@ shared_ptr windowsSocket::getTimeoutHandler() shared_ptr windowsSocketFactory::create() { - shared_ptr th = NULL; + shared_ptr th; return make_shared (th); }