aboutsummaryrefslogtreecommitdiffstats
path: root/tests/utility
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2008-10-12 12:05:28 +0200
committerVincent Richard <[email protected]>2008-10-12 12:05:28 +0200
commit3f4226eaac5d0d30be1f4ca5d5cf010c98a7ce7d (patch)
tree1968196db0d6ae27fd70d0732ff3defed0efb61f /tests/utility
parentEncode '?' characters to avoid breaking QP encoding (Zarafa). (diff)
downloadvmime-3f4226eaac5d0d30be1f4ca5d5cf010c98a7ce7d.tar.gz
vmime-3f4226eaac5d0d30be1f4ca5d5cf010c98a7ce7d.zip
Fixed compilation warnings.
Diffstat (limited to 'tests/utility')
-rw-r--r--tests/utility/filteredStreamTest.cpp6
-rw-r--r--tests/utility/smartPtrTest.cpp4
-rw-r--r--tests/utility/urlTest.cpp2
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
{