diff options
| author | Vincent Richard <[email protected]> | 2009-11-04 12:52:49 +0000 |
|---|---|---|
| committer | Vincent Richard <[email protected]> | 2009-11-04 12:52:49 +0000 |
| commit | 5341f2d1f7405dd491b3fb194e33cdd7927a983e (patch) | |
| tree | 18f2acb73c46bb4ad39a32e5dd3edbb81a4e1c62 /src | |
| parent | Reset EOF flag when stream is reset. (diff) | |
| download | vmime-5341f2d1f7405dd491b3fb194e33cdd7927a983e.tar.gz vmime-5341f2d1f7405dd491b3fb194e33cdd7927a983e.zip | |
Removed some unnecessary consts on integral types where overrides conflict. Added <cctype> to get the std::isspace that doesn't require a 2nd arg 'locale' (thanks to Ben Jackson).
Diffstat (limited to 'src')
| -rw-r--r-- | src/platforms/windows/windowsFile.cpp | 4 |
1 files changed, 2 insertions, 2 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); |
