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