17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-10-17 03:59:19 +02:00

refactor(sonar): rely on class template argument deduction (cpp:S6012)

This commit is contained in:
jerrrrycho
2026-10-10 16:37:55 +02:00
parent 1a956d3215
commit 14dcbc0a45
7 changed files with 12 additions and 12 deletions

View File

@@ -393,7 +393,7 @@ sound_source::play_basic() {
// dispatch appropriate sound
if( true == m_playbeginning
&& sound(sound_id::begin).buffer != null_handle) {
std::vector<sound_id> sounds { sound_id::begin, sound_id::main };
std::vector sounds { sound_id::begin, sound_id::main };
insert( std::begin( sounds ), std::end( sounds ) );
m_playbeginning = false;
}
@@ -1009,7 +1009,7 @@ sound_source::update_soundproofing() {
void
sound_source::insert( sound_handle const Sound ) {
std::vector<sound_handle> sounds { Sound };
std::vector sounds { Sound };
return insert( std::begin( sounds ), std::end( sounds ) );
}