From 82b0cb17a18da62758d26d682cd89b9bdf766e0a Mon Sep 17 00:00:00 2001 From: Philip Gregor Date: Wed, 15 May 2024 17:59:21 -0700 Subject: [PATCH] Fixing style issues --- .../core/ConnectionCallbacks.h | 31 ++++++++++--------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/examples/tv-casting-app/tv-casting-common/core/ConnectionCallbacks.h b/examples/tv-casting-app/tv-casting-common/core/ConnectionCallbacks.h index b6699e37a47dea..9c5095aa851380 100644 --- a/examples/tv-casting-app/tv-casting-common/core/ConnectionCallbacks.h +++ b/examples/tv-casting-app/tv-casting-common/core/ConnectionCallbacks.h @@ -30,30 +30,31 @@ class CastingPlayer; * @brief Called when the User Directed Commissioning (UDC) process succeeds or fails. * @param[in] err For success, called back with CHIP_NO_ERROR. For failure, called back with an error. * @param[in] castingPlayer For success, called back with a CastingPlayer *. For failure, called back with a nullptr. -*/ + */ using ConnectCallback = std::function; /** -* @brief Called when a Commissioner Declaration UDC message has been received. -* @param[in] source The source of the Commissioner Declaration message. -* @param[in] cd The Commissioner Declaration message. -*/ -using CommissionerDeclarationCallback = std::function; + * @brief Called when a Commissioner Declaration UDC message has been received. + * @param[in] source The source of the Commissioner Declaration message. + * @param[in] cd The Commissioner Declaration message. + */ +using CommissionerDeclarationCallback = std::function; /** * @brief A container class for User Directed Commissioning (UDC) callbacks. */ class ConnectionCallbacks { - public: - /** - * The callback called when the connection process has ended, regardless of whether it was successful or not. - */ - ConnectCallback mOnConnectionComplete = nullptr; - /** - * The callback called when the Commissionee receives a CommissionerDeclaration message from the Commissioner. - */ - CommissionerDeclarationCallback mCommissionerDeclarationCallback = nullptr; +public: + /** + * The callback called when the connection process has ended, regardless of whether it was successful or not. + */ + ConnectCallback mOnConnectionComplete = nullptr; + /** + * The callback called when the Commissionee receives a CommissionerDeclaration message from the Commissioner. + */ + CommissionerDeclarationCallback mCommissionerDeclarationCallback = nullptr; }; }; // namespace core