aboutsummaryrefslogtreecommitdiffstats
path: root/src/platforms/posix
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/platforms/posix/posixChildProcess.cpp6
-rw-r--r--src/platforms/posix/posixFile.cpp24
-rw-r--r--src/platforms/posix/posixHandler.cpp4
-rw-r--r--src/platforms/posix/posixSocket.cpp4
4 files changed, 19 insertions, 19 deletions
diff --git a/src/platforms/posix/posixChildProcess.cpp b/src/platforms/posix/posixChildProcess.cpp
index 6765c705..d1a0d910 100644
--- a/src/platforms/posix/posixChildProcess.cpp
+++ b/src/platforms/posix/posixChildProcess.cpp
@@ -145,7 +145,7 @@ public:
{
}
- const bool eof() const
+ bool eof() const
{
return (m_eof);
}
@@ -155,7 +155,7 @@ public:
// Do nothing: unsupported
}
- const size_type skip(const size_type count)
+ size_type skip(const size_type count)
{
// TODO: not tested
value_type buffer[4096];
@@ -178,7 +178,7 @@ public:
return static_cast <size_type>(bytesSkipped);
}
- const size_type read(value_type* const data, const size_type count)
+ size_type read(value_type* const data, const size_type count)
{
int bytesRead = 0;
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)
{
diff --git a/src/platforms/posix/posixHandler.cpp b/src/platforms/posix/posixHandler.cpp
index d1b782f7..94a5072f 100644
--- a/src/platforms/posix/posixHandler.cpp
+++ b/src/platforms/posix/posixHandler.cpp
@@ -70,7 +70,7 @@ posixHandler::~posixHandler()
}
-const unsigned int posixHandler::getUnixTime() const
+unsigned int posixHandler::getUnixTime() const
{
return ::time(NULL);
}
@@ -165,7 +165,7 @@ const vmime::string posixHandler::getHostName() const
}
-const unsigned int posixHandler::getProcessId() const
+unsigned int posixHandler::getProcessId() const
{
return (::getpid());
}
diff --git a/src/platforms/posix/posixSocket.cpp b/src/platforms/posix/posixSocket.cpp
index fe650803..4c2375c6 100644
--- a/src/platforms/posix/posixSocket.cpp
+++ b/src/platforms/posix/posixSocket.cpp
@@ -194,7 +194,7 @@ void posixSocket::connect(const vmime::string& address, const vmime::port_t port
}
-const bool posixSocket::isConnected() const
+bool posixSocket::isConnected() const
{
if (m_desc == -1)
return false;
@@ -224,7 +224,7 @@ void posixSocket::receive(vmime::string& buffer)
}
-const int posixSocket::receiveRaw(char* buffer, const int count)
+int posixSocket::receiveRaw(char* buffer, const int count)
{
const int ret = ::recv(m_desc, buffer, count, 0);