From 5341f2d1f7405dd491b3fb194e33cdd7927a983e Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Wed, 4 Nov 2009 12:52:49 +0000 Subject: [PATCH] Removed some unnecessary consts on integral types where overrides conflict. Added to get the std::isspace that doesn't require a 2nd arg 'locale' (thanks to Ben Jackson). --- src/platforms/windows/windowsFile.cpp | 4 ++-- vmime/base.hpp | 1 + vmime/platforms/windows/windowsFile.hpp | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/platforms/windows/windowsFile.cpp b/src/platforms/windows/windowsFile.cpp index 5412a3b9..82c5696f 100644 --- a/src/platforms/windows/windowsFile.cpp +++ b/src/platforms/windows/windowsFile.cpp @@ -464,7 +464,7 @@ void windowsFileReaderInputStream::reset() SetFilePointer(m_hFile, 0, NULL, FILE_BEGIN); } -const vmime::utility::stream::size_type windowsFileReaderInputStream::read(value_type* const data, const size_type count) +vmime::utility::stream::size_type windowsFileReaderInputStream::read(value_type* const data, const size_type count) { DWORD dwBytesRead; if (!ReadFile(m_hFile, (LPVOID)data, (DWORD)count, &dwBytesRead, NULL)) @@ -472,7 +472,7 @@ const vmime::utility::stream::size_type windowsFileReaderInputStream::read(value return dwBytesRead; } -const vmime::utility::stream::size_type windowsFileReaderInputStream::skip(const size_type count) +vmime::utility::stream::size_type windowsFileReaderInputStream::skip(const size_type count) { DWORD dwCurPos = SetFilePointer(m_hFile, 0, NULL, FILE_CURRENT); DWORD dwNewPos = SetFilePointer(m_hFile, (LONG)count, NULL, FILE_CURRENT); diff --git a/vmime/base.hpp b/vmime/base.hpp index ad00d3f3..ce544e19 100644 --- a/vmime/base.hpp +++ b/vmime/base.hpp @@ -29,6 +29,7 @@ #include #include #include +#include #include #include "vmime/config.hpp" diff --git a/vmime/platforms/windows/windowsFile.hpp b/vmime/platforms/windows/windowsFile.hpp index a2a9e920..6e1c8fbb 100644 --- a/vmime/platforms/windows/windowsFile.hpp +++ b/vmime/platforms/windows/windowsFile.hpp @@ -73,7 +73,7 @@ public: bool canRead() const; bool canWrite() const; - const length_type getLength(); + length_type getLength(); const path& getFullPath() const;