DatabaseExperiment: Use google::protobuf::Reflection
The previous path google::protobuf::Message::Reflection was deprecated in 2008 (779f61c6a3ce02a119e28e802f229e61b69b9046), and we only used it here. With newer versions of proto-c, this breaks the build.
This commit is contained in:
committed by
Horst Schirmeier
parent
973716ff35
commit
df44da9f33
@ -154,7 +154,7 @@ template<class T>
|
|||||||
T * protobufFindSubmessageByTypename(Message *msg, const std::string &name) {
|
T * protobufFindSubmessageByTypename(Message *msg, const std::string &name) {
|
||||||
T * submessage = 0;
|
T * submessage = 0;
|
||||||
const Descriptor *msg_type = msg->GetDescriptor();
|
const Descriptor *msg_type = msg->GetDescriptor();
|
||||||
const Message::Reflection *ref = msg->GetReflection();
|
const Reflection *ref = msg->GetReflection();
|
||||||
const Descriptor *database_desc =
|
const Descriptor *database_desc =
|
||||||
DescriptorPool::generated_pool()->FindMessageTypeByName(name);
|
DescriptorPool::generated_pool()->FindMessageTypeByName(name);
|
||||||
assert(database_desc != 0);
|
assert(database_desc != 0);
|
||||||
|
|||||||
Reference in New Issue
Block a user