Page MenuHomePhorge

D178.1732309068.diff
No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None

D178.1732309068.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
Fri, Nov 22, 12:57 PM (41 m, 22 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
38979
Default Alt Text
D178.1732309068.diff (1 KB)

Event Timeline