зеркало из https://github.com/nextcloud/desktop.git
Use [[nodiscard]] for new syncoptions and propagateupload functions
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
Родитель
eb01a57359
Коммит
eadb458ae6
|
@ -408,8 +408,8 @@ private:
|
|||
QString originalName;
|
||||
};
|
||||
|
||||
QUrl chunkUploadFolderUrl() const;
|
||||
QUrl chunkUrl(const int chunk) const;
|
||||
[[nodiscard]] QUrl chunkUploadFolderUrl() const;
|
||||
[[nodiscard]] QUrl chunkUrl(const int chunk) const;
|
||||
|
||||
void startNewUpload();
|
||||
void startNextChunk();
|
||||
|
|
|
@ -70,11 +70,11 @@ public:
|
|||
static constexpr auto chunkV2MaxChunkSize = 5LL * 1000LL * 1000LL * 1000LL; // 5 GB
|
||||
|
||||
/** The minimum chunk size in bytes for chunked uploads */
|
||||
qint64 minChunkSize() const;
|
||||
[[nodiscard]] qint64 minChunkSize() const;
|
||||
void setMinChunkSize(const qint64 minChunkSize);
|
||||
|
||||
/** The maximum chunk size in bytes for chunked uploads */
|
||||
qint64 maxChunkSize() const;
|
||||
[[nodiscard]] qint64 maxChunkSize() const;
|
||||
void setMaxChunkSize(const qint64 maxChunkSize);
|
||||
|
||||
/** Reads settings from env vars where available.
|
||||
|
|
Загрузка…
Ссылка в новой задаче