Skip to content

Commit

Permalink
fix static_cast syntax in CastingPlayerDiscovery (#34869)
Browse files Browse the repository at this point in the history
* fix static_cast syntax in `CastingPlayerDiscovery`

* additional matching close paren
  • Loading branch information
kiel-apple authored and pull[bot] committed Nov 7, 2024
1 parent d784cf6 commit 1228719
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ CHIP_ERROR CastingPlayerDiscovery::StartDiscovery(uint32_t deviceTypeFilter)
CHIP_ERROR CastingPlayerDiscovery::StopDiscovery()
{
ChipLogProgress(Discovery, "CastingPlayerDiscovery::StopDiscovery() mCastingPlayers: %u, mCastingPlayersInternal: %u",
static_cast<unsigned int> mCastingPlayers.size(), static_cast<unsigned int> mCastingPlayersInternal.size());
static_cast<unsigned int>(mCastingPlayers.size()), static_cast<unsigned int>(mCastingPlayersInternal.size()));
VerifyOrReturnError(mState == DISCOVERY_RUNNING, CHIP_ERROR_INCORRECT_STATE);
ReturnErrorOnFailure(mCommissionableNodeController.StopDiscovery());

Expand All @@ -81,7 +81,7 @@ CHIP_ERROR CastingPlayerDiscovery::StopDiscovery()
void CastingPlayerDiscovery::ClearDisconnectedCastingPlayersInternal()
{
ChipLogProgress(Discovery, "CastingPlayerDiscovery::ClearDisconnectedCastingPlayersInternal() mCastingPlayersInternal: %u",
static_cast<unsigned int> mCastingPlayersInternal.size());
static_cast<unsigned int>(mCastingPlayersInternal.size()));
// Only clear the CastingPlayers in mCastingPlayersInternal with ConnectionState == CASTING_PLAYER_NOT_CONNECTED
for (auto it = mCastingPlayersInternal.begin(); it != mCastingPlayersInternal.end();)
{
Expand Down

0 comments on commit 1228719

Please sign in to comment.