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 /tests/testUtils.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 'tests/testUtils.cpp')
-rw-r--r-- | tests/testUtils.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/testUtils.cpp b/tests/testUtils.cpp index a774068d..0fa816c9 100644 --- a/tests/testUtils.cpp +++ b/tests/testUtils.cpp @@ -45,7 +45,7 @@ void testSocket::disconnect() } -const bool testSocket::isConnected() const +bool testSocket::isConnected() const { return m_connected; } @@ -66,7 +66,7 @@ void testSocket::send(const vmime::string& buffer) } -const int testSocket::receiveRaw(char* buffer, const int count) +int testSocket::receiveRaw(char* buffer, const int count) { const int n = std::min(count, static_cast <int>(m_inBuffer.size())); @@ -142,7 +142,7 @@ const vmime::string lineBasedTestSocket::getNextLine() return line; } -const bool lineBasedTestSocket::haveMoreLines() const +bool lineBasedTestSocket::haveMoreLines() const { return !m_lines.empty(); } @@ -156,7 +156,7 @@ testTimeoutHandler::testTimeoutHandler(const unsigned int delay) } -const bool testTimeoutHandler::isTimeOut() +bool testTimeoutHandler::isTimeOut() { return (vmime::platform::getHandler()->getUnixTime() - m_start) >= m_delay; } @@ -168,7 +168,7 @@ void testTimeoutHandler::resetTimeOut() } -const bool testTimeoutHandler::handleTimeOut() +bool testTimeoutHandler::handleTimeOut() { return false; } |