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:
@@ -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 ) );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user