Page MenuHomePhorge

D178.1732501439.diff
No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None

D178.1732501439.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
Sun, Nov 24, 6:23 PM (6 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
39996
Default Alt Text
D178.1732501439.diff (1 KB)

Event Timeline