Fix cast warnings with MSVC

This commit is contained in:
Jonas Kvinge
2025-03-25 00:37:07 +01:00
parent d5281abb22
commit 5e031be42c
59 changed files with 207 additions and 207 deletions

View File

@@ -78,7 +78,7 @@ Organize::Organize(const SharedPtr<TaskManager> task_manager,
overwrite_(overwrite),
albumcover_(albumcover),
eject_after_(eject_after),
task_count_(songs_info.count()),
task_count_(static_cast<quint64>(songs_info.count())),
playlist_(playlist),
tasks_complete_(0),
started_(false),
@@ -355,7 +355,7 @@ void Organize::UpdateProgress() {
// Add the progress of the track that's currently copying
progress += current_copy_progress_;
task_manager_->SetTaskProgress(task_id_, progress, total);
task_manager_->SetTaskProgress(task_id_, static_cast<quint64>(progress), total);
}

View File

@@ -499,8 +499,8 @@ void OrganizeDialog::UpdatePreviews() {
}
// Update the free space bar
quint64 capacity = destination.data(MusicStorage::Role_Capacity).toLongLong();
quint64 free = destination.data(MusicStorage::Role_FreeSpace).toLongLong();
quint64 capacity = destination.data(MusicStorage::Role_Capacity).toULongLong();
quint64 free = destination.data(MusicStorage::Role_FreeSpace).toULongLong();
if (capacity > 0) {
ui_->free_space->show();