Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik Verbruggen <erik@verbruggen.consulting>2022-06-10 12:28:05 +0300
committerHannah von Reth <vonreth@kde.org>2022-07-01 15:35:54 +0300
commitefac9f040127f0c3471ee051b4874500c3ee2969 (patch)
tree15d1581c88b4561f754cc60db81b16f09b078f0b /src/libsync
parentdfc2a03c40f73fa524f6c3f5bb37a84c8ef4494b (diff)
Fix a bunch of compiler warnings
Diffstat (limited to 'src/libsync')
-rw-r--r--src/libsync/determineauthtypejobfactory.cpp4
-rw-r--r--src/libsync/owncloudpropagator.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/libsync/determineauthtypejobfactory.cpp b/src/libsync/determineauthtypejobfactory.cpp
index 7f43298fc..f83cfd6fa 100644
--- a/src/libsync/determineauthtypejobfactory.cpp
+++ b/src/libsync/determineauthtypejobfactory.cpp
@@ -62,13 +62,13 @@ CoreJob *DetermineAuthTypeJobFactory::startJob(const QUrl &url)
// we fall back to basic in any case
if (authChallenge.contains(QByteArrayLiteral("bearer "))) {
- setJobResult(job, qVariantFromValue(AuthType::OAuth));
+ setJobResult(job, QVariant::fromValue(AuthType::OAuth));
} else {
if (authChallenge.isEmpty()) {
qCWarning(lcDetermineAuthTypeJob) << "Did not receive WWW-Authenticate reply to auth-test PROPFIND";
}
- setJobResult(job, qVariantFromValue(AuthType::Basic));
+ setJobResult(job, QVariant::fromValue(AuthType::Basic));
}
qCInfo(lcDetermineAuthTypeJob) << "Auth type for" << reply->url() << "is" << job->result();
diff --git a/src/libsync/owncloudpropagator.h b/src/libsync/owncloudpropagator.h
index dd2dbe5ff..213aab63f 100644
--- a/src/libsync/owncloudpropagator.h
+++ b/src/libsync/owncloudpropagator.h
@@ -376,9 +376,9 @@ public:
, _chunkSize(10 * 1000 * 1000) // 10 MB, overridden in setSyncOptions
, _account(account)
, _syncOptions(options)
- , _webDavUrl(baseUrl)
, _localDir((localDir.endsWith(QLatin1Char('/'))) ? localDir : localDir + QLatin1Char('/'))
, _remoteFolder((remoteFolder.endsWith(QLatin1Char('/'))) ? remoteFolder : remoteFolder + QLatin1Char('/'))
+ , _webDavUrl(baseUrl)
{
_chunkSize = _syncOptions._initialChunkSize;
qRegisterMetaType<PropagatorJob::AbortType>("PropagatorJob::AbortType");