From 7ff7d7f5dfb168ab591584dacc5023c9c75071cb Mon Sep 17 00:00:00 2001 From: Prianka Liz Kariat Date: Fri, 6 Jan 2023 14:14:09 +0530 Subject: [PATCH] Updated C++ types to camel case in MPPClassificationResult+helpers.mm --- .../utils/sources/MPPClassificationResult+Helpers.mm | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/mediapipe/tasks/ios/components/containers/utils/sources/MPPClassificationResult+Helpers.mm b/mediapipe/tasks/ios/components/containers/utils/sources/MPPClassificationResult+Helpers.mm index a5a1a3918..6510b0ab1 100644 --- a/mediapipe/tasks/ios/components/containers/utils/sources/MPPClassificationResult+Helpers.mm +++ b/mediapipe/tasks/ios/components/containers/utils/sources/MPPClassificationResult+Helpers.mm @@ -32,7 +32,6 @@ using ClassificationResultProto = } NSString *headName; - if (classificationsProto.has_head_name()) { headName = [NSString stringWithCppString:classificationsProto.head_name()]; } @@ -49,13 +48,11 @@ using ClassificationResultProto = + (MPPClassificationResult *)classificationResultWithProto: (const ClassificationResultProto &)classificationResultProto { NSMutableArray *classifications = [[NSMutableArray alloc] init]; - for (const auto &classifications_proto : classificationResultProto.classifications()) { - [classifications addObject:[MPPClassifications classificationsWithProto:classifications_proto]]; + for (const auto &classificationsProto : classificationResultProto.classifications()) { + [classifications addObject:[MPPClassifications classificationsWithProto:classificationsProto]]; } - MPPClassificationResult *classificationResult; NSInteger timestampMs; - if (classificationResultProto.has_timestamp_ms()) { timestampMs = (NSInteger)classificationResultProto.timestamp_ms(); }