diff options
author | Vincent Richard <[email protected]> | 2013-12-10 07:52:51 +0000 |
---|---|---|
committer | Vincent Richard <[email protected]> | 2013-12-10 07:52:51 +0000 |
commit | 7e265b05f440ed81b80f2de496c9d13221a69fe0 (patch) | |
tree | d4dad210715ea9d60b2136bd416647d4bc02166a /src/utility/inputStreamSocketAdapter.cpp | |
parent | Enforce strict aliasing rule and avoid alignment issues. (diff) | |
download | vmime-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/inputStreamSocketAdapter.cpp')
-rw-r--r-- | src/utility/inputStreamSocketAdapter.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/utility/inputStreamSocketAdapter.cpp b/src/utility/inputStreamSocketAdapter.cpp index 095522d6..d78855eb 100644 --- a/src/utility/inputStreamSocketAdapter.cpp +++ b/src/utility/inputStreamSocketAdapter.cpp @@ -53,22 +53,22 @@ void inputStreamSocketAdapter::reset() } -stream::size_type inputStreamSocketAdapter::read - (value_type* const data, const size_type count) +size_t inputStreamSocketAdapter::read + (byte_t* const data, const size_t count) { return m_socket.receiveRaw(data, count); } -stream::size_type inputStreamSocketAdapter::skip - (const size_type /* count */) +size_t inputStreamSocketAdapter::skip + (const size_t /* count */) { // Not supported return 0; } -stream::size_type inputStreamSocketAdapter::getBlockSize() +size_t inputStreamSocketAdapter::getBlockSize() { return m_socket.getBlockSize(); } |