Page MenuHomePhorge

D178.1732521998.diff
No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None

D178.1732521998.diff

diff --git a/src/kazv-io-job.cpp b/src/kazv-io-job.cpp
--- a/src/kazv-io-job.cpp
+++ b/src/kazv-io-job.cpp
@@ -153,7 +153,7 @@
struct KazvIODownloadJobPrivate
{
- QSharedPointer<KazvSaveFile> file;
+ QPointer<KazvSaveFile> file;
QString hash;
};
@@ -193,7 +193,7 @@
bool KazvIODownloadJob::setFile(QString fileName)
{
- m_d->file.reset(new KazvSaveFile(fileName, this->aes()));
+ m_d->file = new KazvSaveFile(fileName, this->aes(), this);
if (m_d->file->open(QIODevice::WriteOnly)) {
return true;
}
@@ -235,7 +235,7 @@
struct KazvIOUploadJobPrivate
{
- QSharedPointer<KazvFile> file;
+ QPointer<KazvFile> file;
QString response;
QSharedPointer<MatrixRoom> room;
QString mimeType;
@@ -344,7 +344,7 @@
bool KazvIOUploadJob::setFile(const QString fileName)
{
- m_d->file.reset(new KazvFile(fileName, this->aes()));
+ m_d->file = new KazvFile(fileName, this->aes(), this);
if (m_d->file->open(QIODevice::ReadOnly)) {
return true;
}

File Metadata

Mime Type
text/plain
Expires
Mon, Nov 25, 12:06 AM (6 h, 20 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
39996
Default Alt Text
D178.1732521998.diff (1 KB)

Event Timeline