Code cleanup.

This commit is contained in:
Felix Geyer 2010-09-19 16:58:21 +02:00
parent 7cbbf8cf37
commit a49cf184ea
2 changed files with 4 additions and 3 deletions

View File

@ -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;
}

View File

@ -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)