Updated C++ types to camel case in MPPClassificationResult+helpers.mm

This commit is contained in:
Prianka Liz Kariat 2023-01-06 14:14:09 +05:30
parent e119363aa3
commit 7ff7d7f5df

View File

@ -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();
}