mirror of
https://github.com/zebrajr/opencv.git
synced 2025-12-06 12:19:50 +01:00
Replace deprecated proto2::FieldDescriptor::is_optional
It has been marked for inlining, cf
930036a8cf/src/google/protobuf/descriptor.h (L936)
This commit is contained in:
parent
468de9b367
commit
61a3d7d25d
|
|
@ -217,7 +217,7 @@ public:
|
|||
|
||||
const google::protobuf::UnknownFieldSet& unknownFields = msgRefl->GetUnknownFields(msg);
|
||||
bool hasData = fd->is_required() ||
|
||||
(fd->is_optional() && msgRefl->HasField(msg, fd)) ||
|
||||
(!fd->is_repeated() && !fd->is_required() && msgRefl->HasField(msg, fd)) ||
|
||||
(fd->is_repeated() && msgRefl->FieldSize(msg, fd) > 0) ||
|
||||
!unknownFields.empty();
|
||||
if (!hasData)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user