Skip to content
Permalink
Browse files
unique_ptr for feedback and add missing includes
  • Loading branch information
troopa81 committed Aug 23, 2021
1 parent 0034f49 commit 4483ee707ba207976dd2c5d905bd54092f96ee68
@@ -19,6 +19,7 @@
#include "qgsblockingnetworkrequest.h"
#include "qgsnetworkaccessmanager.h"
#include "qgsapplication.h"
#include "qgsfeedback.h"

#include <QFile>
#include <QPointer>
@@ -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 )
{
@@ -23,6 +23,7 @@
#include "externalstorage/qgsexternalstorage.h"

#include <QPointer>
#include <QUrl>

class QgsWebDAVExternalStorageStoreTask;
class QgsFetchedContent;
@@ -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;
};

0 comments on commit 4483ee7

Please sign in to comment.