diff --git a/examples/tv-casting-app/tv-casting-common/support/EndpointListLoader.cpp b/examples/tv-casting-app/tv-casting-common/support/EndpointListLoader.cpp index c43d40f0ab7710..396a3229c23e2a 100644 --- a/examples/tv-casting-app/tv-casting-common/support/EndpointListLoader.cpp +++ b/examples/tv-casting-app/tv-casting-common/support/EndpointListLoader.cpp @@ -172,14 +172,14 @@ CHIP_ERROR EndpointListLoader::ReadVendorId(EndpointAttributes * endpointAttribu endpointAttributes, [](void * context, chip::app::Clusters::ApplicationBasic::Attributes::VendorID::TypeInfo::DecodableArgType decodableVendorId) { - EndpointAttributes * endpointAttributes = static_cast(context); - endpointAttributes->mVendorId = decodableVendorId; + EndpointAttributes * _endpointAttributes = static_cast(context); + _endpointAttributes->mVendorId = decodableVendorId; EndpointListLoader::GetInstance()->Complete(); }, [](void * context, CHIP_ERROR err) { - EndpointAttributes * endpointAttributes = static_cast(context); + EndpointAttributes * _endpointAttributes = static_cast(context); ChipLogError(AppServer, "EndpointListLoader ReadAttribute(VendorID) failed for endpointID %d. Err: %" CHIP_ERROR_FORMAT, - endpointAttributes->mId, err.Format()); + _endpointAttributes->mId, err.Format()); EndpointListLoader::GetInstance()->Complete(); }); } @@ -192,15 +192,15 @@ CHIP_ERROR EndpointListLoader::ReadProductId(EndpointAttributes * endpointAttrib endpointAttributes, [](void * context, chip::app::Clusters::ApplicationBasic::Attributes::ProductID::TypeInfo::DecodableArgType decodableProductId) { - EndpointAttributes * endpointAttributes = static_cast(context); - endpointAttributes->mProductId = decodableProductId; + EndpointAttributes * _endpointAttributes = static_cast(context); + _endpointAttributes->mProductId = decodableProductId; EndpointListLoader::GetInstance()->Complete(); }, [](void * context, CHIP_ERROR err) { - EndpointAttributes * endpointAttributes = static_cast(context); + EndpointAttributes * _endpointAttributes = static_cast(context); ChipLogError(AppServer, "EndpointListLoader ReadAttribute(ProductID) failed for endpointID %d. Err: %" CHIP_ERROR_FORMAT, - endpointAttributes->mId, err.Format()); + _endpointAttributes->mId, err.Format()); EndpointListLoader::GetInstance()->Complete(); }); } @@ -213,20 +213,20 @@ CHIP_ERROR EndpointListLoader::ReadDeviceTypeList(EndpointAttributes * endpointA endpointAttributes, [](void * context, chip::app::Clusters::Descriptor::Attributes::DeviceTypeList::TypeInfo::DecodableArgType decodableDeviceTypeList) { - EndpointAttributes * endpointAttributes = static_cast(context); - auto iter = decodableDeviceTypeList.begin(); + EndpointAttributes * _endpointAttributes = static_cast(context); + auto iter = decodableDeviceTypeList.begin(); while (iter.Next()) { auto & deviceType = iter.GetValue(); - endpointAttributes->mDeviceTypeList.push_back(deviceType); + _endpointAttributes->mDeviceTypeList.push_back(deviceType); } EndpointListLoader::GetInstance()->Complete(); }, [](void * context, CHIP_ERROR err) { - EndpointAttributes * endpointAttributes = static_cast(context); + EndpointAttributes * _endpointAttributes = static_cast(context); ChipLogError(AppServer, "EndpointListLoader ReadAttribute(DeviceTypeList) failed for endpointID %d. Err: %" CHIP_ERROR_FORMAT, - endpointAttributes->mId, err.Format()); + _endpointAttributes->mId, err.Format()); EndpointListLoader::GetInstance()->Complete(); }); } @@ -239,12 +239,12 @@ CHIP_ERROR EndpointListLoader::ReadServerList(std::vector * end endpointServerList, [](void * context, chip::app::Clusters::Descriptor::Attributes::ServerList::TypeInfo::DecodableArgType decodableServerList) { - std::vector * endpointServerList = static_cast *>(context); - auto iter = decodableServerList.begin(); + std::vector * _endpointServerList = static_cast *>(context); + auto iter = decodableServerList.begin(); while (iter.Next()) { auto & clusterId = iter.GetValue(); - endpointServerList->push_back(clusterId); + _endpointServerList->push_back(clusterId); } EndpointListLoader::GetInstance()->Complete(); },