mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-11-06 05:48:35 +01:00
refactor(sonar): use transparent comparators for string-keyed maps (cpp:S6045)
std::unordered_map instances and map types exposed in headers used by other modules are left as they are. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -216,7 +216,7 @@ void TGauge::Load( cParser &Parser, TDynamicObject const *Owner, double const mu
|
||||
}
|
||||
}
|
||||
|
||||
std::map<std::string, TGaugeAnimation> gaugetypes {
|
||||
std::map<std::string, TGaugeAnimation, std::less<>> gaugetypes {
|
||||
{ "rot", TGaugeAnimation::gt_Rotate },
|
||||
{ "rotvar", TGaugeAnimation::gt_Rotate },
|
||||
{ "mov", TGaugeAnimation::gt_Move },
|
||||
|
||||
Reference in New Issue
Block a user