diff options
author | Vincent Richard <[email protected]> | 2008-10-12 10:05:28 +0000 |
---|---|---|
committer | Vincent Richard <[email protected]> | 2008-10-12 10:05:28 +0000 |
commit | 3f4226eaac5d0d30be1f4ca5d5cf010c98a7ce7d (patch) | |
tree | 1968196db0d6ae27fd70d0732ff3defed0efb61f /src/platforms/posix/posixFile.cpp | |
parent | Encode '?' characters to avoid breaking QP encoding (Zarafa). (diff) | |
download | vmime-3f4226eaac5d0d30be1f4ca5d5cf010c98a7ce7d.tar.gz vmime-3f4226eaac5d0d30be1f4ca5d5cf010c98a7ce7d.zip |
Fixed compilation warnings.
Diffstat (limited to 'src/platforms/posix/posixFile.cpp')
-rw-r--r-- | src/platforms/posix/posixFile.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/platforms/posix/posixFile.cpp b/src/platforms/posix/posixFile.cpp index 1056155e..4d063d4e 100644 --- a/src/platforms/posix/posixFile.cpp +++ b/src/platforms/posix/posixFile.cpp @@ -66,7 +66,7 @@ posixFileIterator::~posixFileIterator() } -const bool posixFileIterator::hasMoreElements() const +bool posixFileIterator::hasMoreElements() const { return (m_dirEntry != NULL); } @@ -146,7 +146,7 @@ posixFileReaderInputStream::~posixFileReaderInputStream() } -const bool posixFileReaderInputStream::eof() const +bool posixFileReaderInputStream::eof() const { return (m_eof); } @@ -158,7 +158,7 @@ void posixFileReaderInputStream::reset() } -const vmime::utility::stream::size_type posixFileReaderInputStream::read +vmime::utility::stream::size_type posixFileReaderInputStream::read (value_type* const data, const size_type count) { ssize_t c = 0; @@ -173,7 +173,7 @@ const vmime::utility::stream::size_type posixFileReaderInputStream::read } -const vmime::utility::stream::size_type posixFileReaderInputStream::skip(const size_type count) +vmime::utility::stream::size_type posixFileReaderInputStream::skip(const size_type count) { const off_t curPos = ::lseek(m_fd, 0, SEEK_CUR); const off_t newPos = ::lseek(m_fd, count, SEEK_CUR); @@ -254,21 +254,21 @@ void posixFile::createDirectory(const bool createAll) } -const bool posixFile::isFile() const +bool posixFile::isFile() const { struct stat buf; return (::stat(m_nativePath.c_str(), &buf) == 0 && S_ISREG(buf.st_mode)); } -const bool posixFile::isDirectory() const +bool posixFile::isDirectory() const { struct stat buf; return (::stat(m_nativePath.c_str(), &buf) == 0 && S_ISDIR(buf.st_mode)); } -const bool posixFile::canRead() const +bool posixFile::canRead() const { struct stat buf; return (::stat(m_nativePath.c_str(), &buf) == 0 && @@ -277,7 +277,7 @@ const bool posixFile::canRead() const } -const bool posixFile::canWrite() const +bool posixFile::canWrite() const { struct stat buf; return (::stat(m_nativePath.c_str(), &buf) == 0 && @@ -286,7 +286,7 @@ const bool posixFile::canWrite() const } -const posixFile::length_type posixFile::getLength() +posixFile::length_type posixFile::getLength() { struct stat buf; @@ -303,7 +303,7 @@ const posixFile::path& posixFile::getFullPath() const } -const bool posixFile::exists() const +bool posixFile::exists() const { struct stat buf; return (::stat(m_nativePath.c_str(), &buf) == 0); @@ -451,13 +451,13 @@ const vmime::string posixFileSystemFactory::pathToStringImpl(const vmime::utilit } -const bool posixFileSystemFactory::isValidPathComponent(const vmime::utility::file::path::component& comp) const +bool posixFileSystemFactory::isValidPathComponent(const vmime::utility::file::path::component& comp) const { return (comp.getBuffer().find_first_of("/*") == vmime::string::npos); } -const bool posixFileSystemFactory::isValidPath(const vmime::utility::file::path& path) const +bool posixFileSystemFactory::isValidPath(const vmime::utility::file::path& path) const { for (int i = 0 ; i < path.getSize() ; ++i) { |