diff --git a/source/blender/asset_system/intern/asset_representation.cc b/source/blender/asset_system/intern/asset_representation.cc index 9907963f500..c2ad7fac459 100644 --- a/source/blender/asset_system/intern/asset_representation.cc +++ b/source/blender/asset_system/intern/asset_representation.cc @@ -50,24 +50,24 @@ AssetWeakReference AssetRepresentation::make_weak_reference() const StringRefNull AssetRepresentation::get_name() const { - if (const ID *local_id = this->local_id()) { - return local_id->name + 2; + if (const ID *id = this->local_id()) { + return id->name + 2; } return std::get(asset_).name; } ID_Type AssetRepresentation::get_id_type() const { - if (const ID *local_id = this->local_id()) { - return GS(local_id->name); + if (const ID *id = this->local_id()) { + return GS(id->name); } return ID_Type(std::get(asset_).id_type); } AssetMetaData &AssetRepresentation::get_metadata() const { - if (const ID *local_id = this->local_id()) { - return *local_id->asset_data; + if (const ID *id = this->local_id()) { + return *id->asset_data; } return *std::get(asset_).metadata_; }