Skip to content

Commit

Permalink
Restyled by clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
restyled-commits authored and su-shanka committed Apr 18, 2024
1 parent b3fd63d commit 568d044
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
3 changes: 1 addition & 2 deletions examples/chip-tool/commands/common/DeviceScanner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@ CHIP_ERROR DeviceScanner::Stop()

void DeviceScanner::OnNodeDiscovered(const DiscoveredNodeData & nodeData)
{
VerifyOrReturn(nodeData.Is<CommissionNodeData>())
auto & commissionData = nodeData.Get<CommissionNodeData>();
VerifyOrReturn(nodeData.Is<CommissionNodeData>()) auto & commissionData = nodeData.Get<CommissionNodeData>();

auto discriminator = commissionData.longDiscriminator;
auto vendorId = static_cast<VendorId>(commissionData.vendorId);
Expand Down
3 changes: 1 addition & 2 deletions src/lib/dnssd/ActiveResolveAttempts.h
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,7 @@ class ActiveResolveAttempts
case chip::Dnssd::DiscoveryFilterType::kNone:
return true;
case chip::Dnssd::DiscoveryFilterType::kShortDiscriminator:
return browse.filter.code ==
static_cast<uint64_t>((nodeData.longDiscriminator >> 8) & 0x0F);
return browse.filter.code == static_cast<uint64_t>((nodeData.longDiscriminator >> 8) & 0x0F);
case chip::Dnssd::DiscoveryFilterType::kLongDiscriminator:
return browse.filter.code == nodeData.longDiscriminator;
case chip::Dnssd::DiscoveryFilterType::kVendorId:
Expand Down
6 changes: 3 additions & 3 deletions src/lib/dnssd/IncrementalResolve.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -348,10 +348,10 @@ CHIP_ERROR IncrementalResolver::Take(DiscoveredNodeData & outputData)
IPAddressSorter::Sort(mCommonResolutionData.ipAddress, mCommonResolutionData.numIPs, mCommonResolutionData.interfaceId);

outputData.Set<CommissionNodeData>();
CommissionNodeData & nodeData = outputData.Get<CommissionNodeData>();
nodeData = mSpecificResolutionData.Get<CommissionNodeData>();
CommissionNodeData & nodeData = outputData.Get<CommissionNodeData>();
nodeData = mSpecificResolutionData.Get<CommissionNodeData>();
CommonResolutionData & resolutionData = nodeData;
resolutionData = mCommonResolutionData;
resolutionData = mCommonResolutionData;

ResetToInactive();

Expand Down

0 comments on commit 568d044

Please sign in to comment.