diff options
author | Felix Geyer <debfx@fobos.de> | 2010-09-19 18:58:21 +0400 |
---|---|---|
committer | Felix Geyer <debfx@fobos.de> | 2010-09-19 18:58:21 +0400 |
commit | a49cf184ea5e2772172a464a6c81a6229d840d6a (patch) | |
tree | 03c8c72988449e6773449c9e02564404e020124a /src | |
parent | 7cbbf8cf3746c65e5644c045bf54fc833895d4fd (diff) |
Code cleanup.
Diffstat (limited to 'src')
-rw-r--r-- | src/streams/HashedBlockStream.cpp | 2 | ||||
-rw-r--r-- | src/streams/SymmetricCipherStream.cpp | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/streams/HashedBlockStream.cpp b/src/streams/HashedBlockStream.cpp index ba4a563ce..c0f97764a 100644 --- a/src/streams/HashedBlockStream.cpp +++ b/src/streams/HashedBlockStream.cpp @@ -40,6 +40,7 @@ HashedBlockStream::HashedBlockStream(QIODevice* baseDevice, qint32 blockSize) void HashedBlockStream::init() { + m_buffer.clear(); m_bufferPos = 0; m_blockIndex = 0; m_eof = false; @@ -62,7 +63,6 @@ bool HashedBlockStream::reset() } init(); - m_buffer.clear(); return true; } diff --git a/src/streams/SymmetricCipherStream.cpp b/src/streams/SymmetricCipherStream.cpp index be3536331..fd7354727 100644 --- a/src/streams/SymmetricCipherStream.cpp +++ b/src/streams/SymmetricCipherStream.cpp @@ -17,8 +17,9 @@ #include "SymmetricCipherStream.h" -SymmetricCipherStream::SymmetricCipherStream(QIODevice* baseDevice, SymmetricCipher::Algorithm algo, SymmetricCipher::Mode mode, - SymmetricCipher::Direction direction, const QByteArray& key, const QByteArray& iv) +SymmetricCipherStream::SymmetricCipherStream(QIODevice* baseDevice, SymmetricCipher::Algorithm algo, + SymmetricCipher::Mode mode, SymmetricCipher::Direction direction, + const QByteArray& key, const QByteArray& iv) : LayeredStream(baseDevice) , m_bufferPos(0) , m_bufferFilling(false) |