real_*_oneof() is too new for GI's proto library.

This commit is contained in:
David Given
2021-08-01 15:29:34 +02:00
parent 8b1bcf21ee
commit 740eacc7ac

View File

@@ -162,7 +162,7 @@ void setProtoFieldFromString(ProtoField& protoField, const std::string& value)
setRange((RangeProto*)reflection->MutableMessage(message, field), value);
break;
}
if (field->real_containing_oneof() && value.empty())
if (field->containing_oneof() && value.empty())
{
reflection->MutableMessage(message, field);
break;