aboutsummaryrefslogtreecommitdiffstats
path: root/src/utility/inputStreamStringProxyAdapter.cpp
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2013-12-10 07:52:51 +0000
committerVincent Richard <[email protected]>2013-12-10 07:52:51 +0000
commit7e265b05f440ed81b80f2de496c9d13221a69fe0 (patch)
treed4dad210715ea9d60b2136bd416647d4bc02166a /src/utility/inputStreamStringProxyAdapter.cpp
parentEnforce strict aliasing rule and avoid alignment issues. (diff)
downloadvmime-7e265b05f440ed81b80f2de496c9d13221a69fe0.tar.gz
vmime-7e265b05f440ed81b80f2de496c9d13221a69fe0.zip
Simplified types for better readability. Use appropriate types (size_t, byte_t...). Minor warning fixes.
Diffstat (limited to 'src/utility/inputStreamStringProxyAdapter.cpp')
-rw-r--r--src/utility/inputStreamStringProxyAdapter.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/utility/inputStreamStringProxyAdapter.cpp b/src/utility/inputStreamStringProxyAdapter.cpp
index 4a78714a..5513de80 100644
--- a/src/utility/inputStreamStringProxyAdapter.cpp
+++ b/src/utility/inputStreamStringProxyAdapter.cpp
@@ -47,10 +47,10 @@ void inputStreamStringProxyAdapter::reset()
}
-stream::size_type inputStreamStringProxyAdapter::read
- (value_type* const data, const size_type count)
+size_t inputStreamStringProxyAdapter::read
+ (byte_t* const data, const size_t count)
{
- const size_type remaining = m_buffer.length() - m_pos;
+ const size_t remaining = m_buffer.length() - m_pos;
if (count > remaining)
{
@@ -67,9 +67,9 @@ stream::size_type inputStreamStringProxyAdapter::read
}
-stream::size_type inputStreamStringProxyAdapter::skip(const size_type count)
+size_t inputStreamStringProxyAdapter::skip(const size_t count)
{
- const size_type remaining = m_buffer.length() - m_pos;
+ const size_t remaining = m_buffer.length() - m_pos;
if (count > remaining)
{
@@ -84,13 +84,13 @@ stream::size_type inputStreamStringProxyAdapter::skip(const size_type count)
}
-stream::size_type inputStreamStringProxyAdapter::getPosition() const
+size_t inputStreamStringProxyAdapter::getPosition() const
{
return m_pos;
}
-void inputStreamStringProxyAdapter::seek(const size_type pos)
+void inputStreamStringProxyAdapter::seek(const size_t pos)
{
if (pos <= m_buffer.length())
m_pos = pos;