mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-19 23:55:58 +02:00
refactor(sonar): use structured bindings for pair access (cpp:S6005)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -95,9 +95,9 @@ TModelsManager::GetModel(std::string const &Name, bool const Dynamic, bool const
|
||||
postfix = "^^" + std::to_string(uid);
|
||||
|
||||
// see if we have it in the databank
|
||||
auto banklookup { find_in_databank( filename + postfix ) };
|
||||
TModel3d *model { banklookup.second };
|
||||
if( true == banklookup.first ) {
|
||||
auto [banklookupfound, banklookupmodel]{ find_in_databank( filename + postfix ) };
|
||||
TModel3d *model { banklookupmodel };
|
||||
if( true == banklookupfound ) {
|
||||
Global.asCurrentTexturePath = buftp;
|
||||
return model;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user