From 22581586fd5abb889cd1cfbd07d63a2ae8ae14a8 Mon Sep 17 00:00:00 2001 From: "Restyled.io" Date: Tue, 18 Jun 2024 09:01:56 +0000 Subject: [PATCH 1/2] Restyled by whitespace --- examples/tv-app/tv-common/src/AppTv.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/tv-app/tv-common/src/AppTv.cpp b/examples/tv-app/tv-common/src/AppTv.cpp index 22a154d21a154b..de2370f734228f 100644 --- a/examples/tv-app/tv-common/src/AppTv.cpp +++ b/examples/tv-app/tv-common/src/AppTv.cpp @@ -588,7 +588,7 @@ void ContentAppFactoryImpl::InstallContentApp(uint16_t vendorId, uint16_t produc mContentApps.emplace_back(std::move(ptr)); } else if (vendorId == 9050 && productId == 22) - { + { auto ptr = std::make_unique("Vendor3", vendorId, "App3", productId, "Version3", "20202021", make_default_supported_clusters()); mContentApps.emplace_back(std::move(ptr)); From f2f9eccf59ae9e11da10f3bfbe224000d5bd0046 Mon Sep 17 00:00:00 2001 From: "Restyled.io" Date: Tue, 18 Jun 2024 09:01:58 +0000 Subject: [PATCH 2/2] Restyled by clang-format --- examples/tv-app/tv-common/src/AppTv.cpp | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/examples/tv-app/tv-common/src/AppTv.cpp b/examples/tv-app/tv-common/src/AppTv.cpp index de2370f734228f..d712c4103fb121 100644 --- a/examples/tv-app/tv-common/src/AppTv.cpp +++ b/examples/tv-app/tv-common/src/AppTv.cpp @@ -577,32 +577,32 @@ void ContentAppFactoryImpl::InstallContentApp(uint16_t vendorId, uint16_t produc ChipLogProgress(DeviceLayer, "ContentAppFactoryImpl: InstallContentApp vendorId=%d productId=%d ", vendorId, productId); if (vendorId == 1 && productId == 11) { - auto ptr = std::make_unique("Vendor1", vendorId, "exampleid", productId, "Version1", - "34567890", make_default_supported_clusters()); + auto ptr = std::make_unique("Vendor1", vendorId, "exampleid", productId, "Version1", "34567890", + make_default_supported_clusters()); mContentApps.emplace_back(std::move(ptr)); } else if (vendorId == 65521 && productId == 32769) { - auto ptr = std::make_unique("Vendor2", vendorId, "exampleString", productId, "Version2", - "20202021", make_default_supported_clusters()); + auto ptr = std::make_unique("Vendor2", vendorId, "exampleString", productId, "Version2", "20202021", + make_default_supported_clusters()); mContentApps.emplace_back(std::move(ptr)); } else if (vendorId == 9050 && productId == 22) { auto ptr = std::make_unique("Vendor3", vendorId, "App3", productId, "Version3", "20202021", - make_default_supported_clusters()); + make_default_supported_clusters()); mContentApps.emplace_back(std::move(ptr)); } else if (vendorId == 1111 && productId == 22) { - auto ptr = std::make_unique("TestSuiteVendor", vendorId, "applicationId", productId, "v2", - "20202021", make_default_supported_clusters()); + auto ptr = std::make_unique("TestSuiteVendor", vendorId, "applicationId", productId, "v2", "20202021", + make_default_supported_clusters()); mContentApps.emplace_back(std::move(ptr)); } else { - auto ptr = std::make_unique("NewAppVendor", vendorId, "newAppApplicationId", productId, "v2", - "20202021", make_default_supported_clusters()); + auto ptr = std::make_unique("NewAppVendor", vendorId, "newAppApplicationId", productId, "v2", "20202021", + make_default_supported_clusters()); mContentApps.emplace_back(std::move(ptr)); } } @@ -641,7 +641,8 @@ void ContentAppFactoryImpl::PrintInstalledApps() { auto app = contentApp.get(); - ChipLogProgress(DeviceLayer, "Content app vid=%d pid=%d is on ep=%d", app->GetApplicationBasicDelegate()->HandleGetVendorId(), + ChipLogProgress(DeviceLayer, "Content app vid=%d pid=%d is on ep=%d", + app->GetApplicationBasicDelegate()->HandleGetVendorId(), app->GetApplicationBasicDelegate()->HandleGetProductId(), app->GetEndpointId()); } }