mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2025-01-05 12:56:52 +01:00
Replace use of C-style casts
This commit is contained in:
parent
d82fd421ed
commit
b54c749e43
@ -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();
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user