Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F112408
D178.1732309068.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D178.1732309068.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 22, 12:57 PM (5 h, 15 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
38979
Default Alt Text
D178.1732309068.diff (1 KB)
Attached To
Mode
D178: Set parent of KazvFile and KazvSaveFile, instead of QSharedPointer
Attached
Detach File
Event Timeline
Log In to Comment