diff options
Diffstat (limited to 'tests/utility')
-rw-r--r-- | tests/utility/filteredStreamTest.cpp | 6 | ||||
-rw-r--r-- | tests/utility/smartPtrTest.cpp | 4 | ||||
-rw-r--r-- | tests/utility/urlTest.cpp | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/tests/utility/filteredStreamTest.cpp b/tests/utility/filteredStreamTest.cpp index 1926d9bb..bcc785e3 100644 --- a/tests/utility/filteredStreamTest.cpp +++ b/tests/utility/filteredStreamTest.cpp @@ -55,10 +55,10 @@ VMIME_TEST_SUITE_BEGIN void addChunk(const std::string& chunk) { m_chunks.push_back(chunk); } - const bool eof() const { return (m_index >= m_chunks.size()); } + bool eof() const { return (m_index >= m_chunks.size()); } void reset() { m_index = 0; } - const size_type read(value_type* const data, const size_type /* count */) + size_type read(value_type* const data, const size_type /* count */) { if (eof()) return 0; @@ -74,7 +74,7 @@ VMIME_TEST_SUITE_BEGIN return chunk.length(); } - const size_type skip(const size_type /* count */) + size_type skip(const size_type /* count */) { // Not supported return 0; diff --git a/tests/utility/smartPtrTest.cpp b/tests/utility/smartPtrTest.cpp index 68e5ff04..ce0b941f 100644 --- a/tests/utility/smartPtrTest.cpp +++ b/tests/utility/smartPtrTest.cpp @@ -44,8 +44,8 @@ VMIME_TEST_SUITE_BEGIN struct A : public vmime::object { - const int strongCount() const { return getRefManager()->getStrongRefCount(); } - const int weakCount() const { return getRefManager()->getWeakRefCount(); } + int strongCount() const { return getRefManager()->getStrongRefCount(); } + int weakCount() const { return getRefManager()->getWeakRefCount(); } }; struct B : public virtual A { }; diff --git a/tests/utility/urlTest.cpp b/tests/utility/urlTest.cpp index b5a38a95..245657a1 100644 --- a/tests/utility/urlTest.cpp +++ b/tests/utility/urlTest.cpp @@ -48,7 +48,7 @@ VMIME_TEST_SUITE_BEGIN VMIME_TEST_LIST_END - static const bool parseHelper(vmime::utility::url& u, const vmime::string& str) + static bool parseHelper(vmime::utility::url& u, const vmime::string& str) { try { |