mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-17 06:19:19 +02:00
refactor(sonar): make narrowing conversions explicit (cpp:S5276)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -158,7 +158,7 @@ auto basic_controller::find_or_insert( std::string const &Name, basic_element::t
|
||||
auto index { 1 };
|
||||
for( auto const &name : m_elementnames ) {
|
||||
if( name == Name ) {
|
||||
return index;
|
||||
return static_cast<element_handle>(index);
|
||||
}
|
||||
++index;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user