Fix parameter name shadowing in fraction completed methods of domain sync status

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
Claudio Cambra 2024-01-10 02:15:17 +08:00
parent 6d9c44526d
commit 78732bfeb0
No known key found for this signature in database
GPG key ID: C839200C384636B0

View file

@ -152,24 +152,24 @@ void FileProviderDomainSyncStatus::setUploading(const bool uploading)
emit syncingChanged(syncing());
}
void FileProviderDomainSyncStatus::setDownloadFractionCompleted(const double fractionCompleted)
void FileProviderDomainSyncStatus::setDownloadFractionCompleted(const double downloadFractionCompleted)
{
if (_downloadFractionCompleted == fractionCompleted) {
if (_downloadFractionCompleted == downloadFractionCompleted) {
return;
}
_downloadFractionCompleted = fractionCompleted;
_downloadFractionCompleted = downloadFractionCompleted;
emit downloadFractionCompletedChanged(_downloadFractionCompleted);
emit fractionCompletedChanged(fractionCompleted());
}
void FileProviderDomainSyncStatus::setUploadFractionCompleted(const double fractionCompleted)
void FileProviderDomainSyncStatus::setUploadFractionCompleted(const double uploadFractionCompleted)
{
if (_uploadFractionCompleted == fractionCompleted) {
if (_uploadFractionCompleted == uploadFractionCompleted) {
return;
}
_uploadFractionCompleted = fractionCompleted;
_uploadFractionCompleted = uploadFractionCompleted;
emit uploadFractionCompletedChanged(_uploadFractionCompleted);
emit fractionCompletedChanged(fractionCompleted());
}