mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
parent
c1a66a8be9
commit
a82283b7a2
@ -21,14 +21,12 @@
|
||||
|
||||
BinaryStream::BinaryStream(QIODevice* device)
|
||||
: QObject(device)
|
||||
, m_timeout(-1)
|
||||
, m_device(device)
|
||||
{
|
||||
}
|
||||
|
||||
BinaryStream::BinaryStream(QByteArray* ba, QObject* parent)
|
||||
: QObject(parent)
|
||||
, m_timeout(-1)
|
||||
{
|
||||
m_buffer.reset(new QBuffer(ba));
|
||||
m_buffer->open(QIODevice::ReadWrite);
|
||||
|
@ -55,7 +55,7 @@ protected:
|
||||
bool write(const char* ptr, qint64 len);
|
||||
|
||||
private:
|
||||
int m_timeout;
|
||||
int m_timeout = 5000;
|
||||
QString m_error;
|
||||
QIODevice* m_device;
|
||||
QScopedPointer<QBuffer> m_buffer;
|
||||
|
Loading…
Reference in New Issue
Block a user