Replace use of C-style casts

This commit is contained in:
Jonas Kvinge 2022-06-13 00:40:31 +02:00
parent d82fd421ed
commit b54c749e43
2 changed files with 2 additions and 2 deletions

View File

@ -396,7 +396,7 @@ SmartPlaylistSearchTerm SmartPlaylistSearchTermWidget::Term() const {
ret.value_ = ui_->value_date_numeric->value();
}
else if (value_page == ui_->page_date_relative) {
ret.date_ = SmartPlaylistSearchTerm::DateType(ui_->date_type_relative->currentIndex());
ret.date_ = static_cast<SmartPlaylistSearchTerm::DateType>(ui_->date_type_relative->currentIndex());
ret.value_ = ui_->value_date_numeric1->value();
ret.second_value_ = ui_->value_date_numeric2->value();
}

View File

@ -83,7 +83,7 @@ class TagReaderTest : public ::testing::Test {
QByteArray buffer;
QCryptographicHash hash(QCryptographicHash::Sha256);
while (file.bytesAvailable() > 0) {
quint64 bytes_read = qMin(file.bytesAvailable(), qint64(8192));
qint64 bytes_read = qMin(file.bytesAvailable(), 8192LL);
buffer = file.read(bytes_read);
if (buffer.isEmpty()) break;
hash.addData(buffer, bytes_read);