Skip to content

Commit

Permalink
unique_ptr for feedback and add missing includes
Browse files Browse the repository at this point in the history
  • Loading branch information
troopa81 committed Aug 23, 2021
1 parent 0034f49 commit 4483ee7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/core/externalstorage/qgswebdavexternalstorage.cpp
Expand Up @@ -19,6 +19,7 @@
#include "qgsblockingnetworkrequest.h"
#include "qgsnetworkaccessmanager.h"
#include "qgsapplication.h"
#include "qgsfeedback.h"

#include <QFile>
#include <QPointer>
Expand Down Expand Up @@ -53,7 +54,7 @@ bool QgsWebDAVExternalStorageStoreTask::run()
}
} );

QgsBlockingNetworkRequest::ErrorCode err = request.put( req, f, mFeedback );
QgsBlockingNetworkRequest::ErrorCode err = request.put( req, f, mFeedback.get() );

if ( err != QgsBlockingNetworkRequest::NoError )
{
Expand Down
3 changes: 2 additions & 1 deletion src/core/externalstorage/qgswebdavexternalstorage_p.h
Expand Up @@ -23,6 +23,7 @@
#include "externalstorage/qgsexternalstorage.h"

#include <QPointer>
#include <QUrl>

class QgsWebDAVExternalStorageStoreTask;
class QgsFetchedContent;
Expand Down Expand Up @@ -132,7 +133,7 @@ class QgsWebDAVExternalStorageStoreTask : public QgsTask
const QUrl mUrl;
const QString mFilePath;
const QString mAuthCfg;
QgsFeedback *mFeedback = nullptr;
std::unique_ptr<QgsFeedback> mFeedback;
QString mErrorString;
};

Expand Down

0 comments on commit 4483ee7

Please sign in to comment.