mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2025-01-18 19:50:38 +01:00
Use const_iterator
This commit is contained in:
parent
9a480eb710
commit
ebadb4db0a
@ -43,7 +43,7 @@ bool SqlQuery::Exec() {
|
||||
last_query_ = executedQuery();
|
||||
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
|
||||
for (QMap<QString, QVariant>::const_iterator it = bound_values_.begin(); it != bound_values_.end(); ++it) {
|
||||
for (QMap<QString, QVariant>::const_iterator it = bound_values_.constBegin(); it != bound_values_.constEnd(); ++it) {
|
||||
last_query_.replace(it.key(), it.value().toString());
|
||||
}
|
||||
bound_values_.clear();
|
||||
|
@ -534,7 +534,7 @@ TEST_F(UpdateSongsBySongID, UpdateSongsBySongID) {
|
||||
|
||||
EXPECT_EQ(songs.count(), song_ids.count());
|
||||
|
||||
for (QMap<QString, Song>::const_iterator it = songs.begin() ; it != songs.end() ; ++it) {
|
||||
for (QMap<QString, Song>::const_iterator it = songs.constBegin() ; it != songs.constEnd() ; ++it) {
|
||||
EXPECT_EQ(it.key(), it.value().song_id());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user