From d1ad575bb69d9c2abb5b9f6e67d0d4efce69525f Mon Sep 17 00:00:00 2001 From: Justin Wood Date: Wed, 7 Aug 2024 21:32:04 -0700 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Kiel Oleson --- .../tv-casting-common/core/CastingPlayerDiscovery.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 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 92e0c218f70dc8..917c40b8d4a669 100644 --- a/examples/tv-casting-app/tv-casting-common/core/CastingPlayerDiscovery.cpp +++ b/examples/tv-casting-app/tv-casting-common/core/CastingPlayerDiscovery.cpp @@ -63,8 +63,8 @@ CHIP_ERROR CastingPlayerDiscovery::StartDiscovery(uint32_t deviceTypeFilter) CHIP_ERROR CastingPlayerDiscovery::StopDiscovery() { - ChipLogProgress(Discovery, "CastingPlayerDiscovery::StopDiscovery() mCastingPlayers: %zu, mCastingPlayersInternal: %zu", - mCastingPlayers.size(), mCastingPlayersInternal.size()); + ChipLogProgress(Discovery, "CastingPlayerDiscovery::StopDiscovery() mCastingPlayers: %u, mCastingPlayersInternal: %u", + static_castmCastingPlayers.size(), static_castmCastingPlayersInternal.size()); VerifyOrReturnError(mState == DISCOVERY_RUNNING, CHIP_ERROR_INCORRECT_STATE); ReturnErrorOnFailure(mCommissionableNodeController.StopDiscovery()); @@ -80,8 +80,8 @@ CHIP_ERROR CastingPlayerDiscovery::StopDiscovery() void CastingPlayerDiscovery::ClearDisconnectedCastingPlayersInternal() { - ChipLogProgress(Discovery, "CastingPlayerDiscovery::ClearDisconnectedCastingPlayersInternal() mCastingPlayersInternal: %zu", - mCastingPlayersInternal.size()); + ChipLogProgress(Discovery, "CastingPlayerDiscovery::ClearDisconnectedCastingPlayersInternal() mCastingPlayersInternal: %u", + static_castmCastingPlayersInternal.size()); // Only clear the CastingPlayers in mCastingPlayersInternal with ConnectionState == CASTING_PLAYER_NOT_CONNECTED for (auto it = mCastingPlayersInternal.begin(); it != mCastingPlayersInternal.end();) {