Updated C++ types to camel case in MPPClassificationResult+helpers.mm
This commit is contained in:
parent
e119363aa3
commit
7ff7d7f5df
|
@ -32,7 +32,6 @@ using ClassificationResultProto =
|
||||||
}
|
}
|
||||||
|
|
||||||
NSString *headName;
|
NSString *headName;
|
||||||
|
|
||||||
if (classificationsProto.has_head_name()) {
|
if (classificationsProto.has_head_name()) {
|
||||||
headName = [NSString stringWithCppString:classificationsProto.head_name()];
|
headName = [NSString stringWithCppString:classificationsProto.head_name()];
|
||||||
}
|
}
|
||||||
|
@ -49,13 +48,11 @@ using ClassificationResultProto =
|
||||||
+ (MPPClassificationResult *)classificationResultWithProto:
|
+ (MPPClassificationResult *)classificationResultWithProto:
|
||||||
(const ClassificationResultProto &)classificationResultProto {
|
(const ClassificationResultProto &)classificationResultProto {
|
||||||
NSMutableArray *classifications = [[NSMutableArray alloc] init];
|
NSMutableArray *classifications = [[NSMutableArray alloc] init];
|
||||||
for (const auto &classifications_proto : classificationResultProto.classifications()) {
|
for (const auto &classificationsProto : classificationResultProto.classifications()) {
|
||||||
[classifications addObject:[MPPClassifications classificationsWithProto:classifications_proto]];
|
[classifications addObject:[MPPClassifications classificationsWithProto:classificationsProto]];
|
||||||
}
|
}
|
||||||
|
|
||||||
MPPClassificationResult *classificationResult;
|
|
||||||
NSInteger timestampMs;
|
NSInteger timestampMs;
|
||||||
|
|
||||||
if (classificationResultProto.has_timestamp_ms()) {
|
if (classificationResultProto.has_timestamp_ms()) {
|
||||||
timestampMs = (NSInteger)classificationResultProto.timestamp_ms();
|
timestampMs = (NSInteger)classificationResultProto.timestamp_ms();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user