From 1228719534b2d152b1ba8967970ad0807ec4f0ef Mon Sep 17 00:00:00 2001 From: Kiel Oleson Date: Wed, 7 Aug 2024 22:39:43 -0700 Subject: [PATCH] fix static_cast syntax in `CastingPlayerDiscovery` (#34869) * fix static_cast syntax in `CastingPlayerDiscovery` * additional matching close paren --- .../tv-casting-common/core/CastingPlayerDiscovery.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/tv-casting-app/tv-casting-common/core/CastingPlayerDiscovery.cpp b/examples/tv-casting-app/tv-casting-common/core/CastingPlayerDiscovery.cpp index 3a6f3020ba6907..81d1f78fe1b33a 100644 --- a/examples/tv-casting-app/tv-casting-common/core/CastingPlayerDiscovery.cpp +++ b/examples/tv-casting-app/tv-casting-common/core/CastingPlayerDiscovery.cpp @@ -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 mCastingPlayers.size(), static_cast mCastingPlayersInternal.size()); + static_cast(mCastingPlayers.size()), static_cast(mCastingPlayersInternal.size())); VerifyOrReturnError(mState == DISCOVERY_RUNNING, CHIP_ERROR_INCORRECT_STATE); ReturnErrorOnFailure(mCommissionableNodeController.StopDiscovery()); @@ -81,7 +81,7 @@ CHIP_ERROR CastingPlayerDiscovery::StopDiscovery() void CastingPlayerDiscovery::ClearDisconnectedCastingPlayersInternal() { ChipLogProgress(Discovery, "CastingPlayerDiscovery::ClearDisconnectedCastingPlayersInternal() mCastingPlayersInternal: %u", - static_cast mCastingPlayersInternal.size()); + static_cast(mCastingPlayersInternal.size())); // Only clear the CastingPlayers in mCastingPlayersInternal with ConnectionState == CASTING_PLAYER_NOT_CONNECTED for (auto it = mCastingPlayersInternal.begin(); it != mCastingPlayersInternal.end();) {