diff options
author | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2022-01-05 16:09:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-05 16:09:04 +0100 |
commit | 7ed5f8d90ce25431fb120698c8a079807df7c13a (patch) | |
tree | a51da22df1818b915817c0c83b6766b5d5a67bc0 /lib/jobs/downloadfilejob.cpp | |
parent | c1bfb156844aa3c53b1588c48ba2002143199510 (diff) | |
parent | 9fc7bfd5ef1daf84307d553941855fb377fddc7c (diff) | |
download | libquotient-7ed5f8d90ce25431fb120698c8a079807df7c13a.tar.gz libquotient-7ed5f8d90ce25431fb120698c8a079807df7c13a.zip |
Merge pull request #532 from quotient-im/kitsune/implptr
ImplPtr
Diffstat (limited to 'lib/jobs/downloadfilejob.cpp')
-rw-r--r-- | lib/jobs/downloadfilejob.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/jobs/downloadfilejob.cpp b/lib/jobs/downloadfilejob.cpp index 6bf221cb..4a507ebd 100644 --- a/lib/jobs/downloadfilejob.cpp +++ b/lib/jobs/downloadfilejob.cpp @@ -32,13 +32,12 @@ DownloadFileJob::DownloadFileJob(const QString& serverName, const QString& mediaId, const QString& localFilename) : GetContentJob(serverName, mediaId) - , d(localFilename.isEmpty() ? new Private : new Private(localFilename)) + , d(localFilename.isEmpty() ? makeImpl<Private>() + : makeImpl<Private>(localFilename)) { setObjectName(QStringLiteral("DownloadFileJob")); } -DownloadFileJob::~DownloadFileJob() = default; - QString DownloadFileJob::targetFileName() const { return (d->targetFile ? d->targetFile : d->tempFile)->fileName(); |