namespace OCC {
namespace Constants {
constexpr qint32 e2EeTagSize = 16;
-};
-};
+}
+}
private:
SqlQuery _queries[PreparedQueryCount];
- Q_DISABLE_COPY(PreparedSqlQueryManager);
+ Q_DISABLE_COPY(PreparedSqlQueryManager)
};
}
*/
#include "config_csync.h"
+#include <qglobal.h>
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
/* Do not sync desktop.ini files anywhere in the tree. */
const auto desktopIniFile = QStringLiteral("desktop.ini");
- if (blen == static_cast<size_t>(desktopIniFile.length()) && bname.compare(desktopIniFile, Qt::CaseInsensitive) == 0) {
+ if (blen == static_cast<qsizetype>(desktopIniFile.length()) && bname.compare(desktopIniFile, Qt::CaseInsensitive) == 0) {
return CSYNC_FILE_SILENTLY_EXCLUDED;
}
{
#ifdef Q_OS_LINUX
QProcess process;
- process.start(QLatin1String("lsb_release -a"));
+ process.start(QLatin1String("lsb_release"), { QStringLiteral("-a") });
process.waitForFinished();
QByteArray output = process.readAllStandardOutput();
qCDebug(lcUpdater) << "Sys Info size: " << output.length();
{
return _isFinished;
}
-};
+}
const bool isVfsModeOn = _discoveryData && _discoveryData->_syncOptions._vfs && _discoveryData->_syncOptions._vfs->mode() != Vfs::Off;
if (isVfsModeOn && dbEntry.isDirectory() && dbEntry._isE2eEncrypted) {
qint64 localFolderSize = 0;
- const auto listFilesCallback = [this, &localFolderSize](const OCC::SyncJournalFileRecord &record) {
+ const auto listFilesCallback = [&localFolderSize](const OCC::SyncJournalFileRecord &record) {
if (record.isFile()) {
// add Constants::e2EeTagSize so we will know the size of E2EE file on the server
localFolderSize += record._fileSize + Constants::e2EeTagSize;
#include "account.h"
#include "common/asserts.h"
#include "discoveryphase.h"
+#include "syncfileitem.h"
#ifdef Q_OS_WIN
#include <windef.h>
case SyncFileItem::NoStatus:
case SyncFileItem::BlacklistedError:
case SyncFileItem::FileLocked:
+ case SyncFileItem::FileNameInvalid:
// nothing
break;
}
, _headers(headers)
, _expectedEtagForResume(expectedEtagForResume)
, _expectedContentLength(-1)
- , _contentLength(-1)
, _resumeStart(resumeStart)
, _errorStatus(SyncFileItem::NoStatus)
, _bandwidthLimited(false)
, _bandwidthManager(nullptr)
, _hasEmittedFinishedSignal(false)
, _lastModified()
+ , _contentLength(-1)
{
}
const QMap<QByteArray, QByteArray> &headers, const QByteArray &expectedEtagForResume,
qint64 resumeStart, QObject *parent)
: AbstractNetworkJob(account, url.toEncoded(), parent)
+ , _device(device)
, _headers(headers)
, _expectedEtagForResume(expectedEtagForResume)
, _expectedContentLength(-1)
- , _contentLength(-1)
, _resumeStart(resumeStart)
, _errorStatus(SyncFileItem::NoStatus)
, _directDownloadUrl(url)
, _bandwidthManager(nullptr)
, _hasEmittedFinishedSignal(false)
, _lastModified()
- , _device(device)
+ , _contentLength(-1)
{
}