Fix cast warnings with MSVC
This commit is contained in:
@@ -99,7 +99,7 @@ DeviceDatabaseBackend::DeviceList DeviceDatabaseBackend::GetAllDevices() {
|
||||
dev.id_ = q.value(0).toInt();
|
||||
dev.unique_id_ = q.value(1).toString();
|
||||
dev.friendly_name_ = q.value(2).toString();
|
||||
dev.size_ = q.value(3).toLongLong();
|
||||
dev.size_ = q.value(3).toULongLong();
|
||||
dev.icon_name_ = q.value(4).toString();
|
||||
int schema_version = q.value(5).toInt();
|
||||
dev.transcode_mode_ = static_cast<MusicStorage::TranscodeMode>(q.value(6).toInt());
|
||||
|
||||
@@ -184,11 +184,11 @@ void DeviceProperties::UpdateHardwareInfo() {
|
||||
}
|
||||
|
||||
// Size
|
||||
quint64 total = index_.data(DeviceManager::Role_Capacity).toLongLong();
|
||||
quint64 total = index_.data(DeviceManager::Role_Capacity).toULongLong();
|
||||
|
||||
QVariant free_var = index_.data(DeviceManager::Role_FreeSpace);
|
||||
if (free_var.isValid()) {
|
||||
quint64 free = free_var.toLongLong();
|
||||
quint64 free = free_var.toULongLong();
|
||||
|
||||
ui_->free_space_bar->set_total_bytes(total);
|
||||
ui_->free_space_bar->set_free_bytes(free);
|
||||
|
||||
Reference in New Issue
Block a user