mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-17 03:59:19 +02:00
refactor(sonar): more small fixes
- std::format instead of iostream manipulators in to_string/to_hex_str (cpp:S6495); output verified identical, negative hex values keep the unsigned form - remove an empty compound statement (cpp:S108) - drop an always-false unsigned < 0 branch (cpp:S1768) - explicit lambda capture (cpp:S3608) - std::make_unique (cpp:S5950) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -38,7 +38,7 @@ void
|
||||
TController::remove_hint( driver_hint const Value ) {
|
||||
|
||||
m_hints.remove_if(
|
||||
[=]( auto const &Hint ) {
|
||||
[Value]( auto const &Hint ) {
|
||||
return std::get<driver_hint>(Hint) == Value; } );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user