diff options
author | Feng Xiao <xfxyjwf@gmail.com> | 2018-08-13 12:32:21 -0700 |
---|---|---|
committer | Feng Xiao <xfxyjwf@gmail.com> | 2018-08-13 12:32:21 -0700 |
commit | 14be563f00b5fd04e50c44420bef6e5061080156 (patch) | |
tree | 305de6fec737246373cd50f3accdf02ebf461037 /python/google/protobuf/pyext/message.cc | |
parent | ba8692fbade4ba329cc4531e286ab5a8e0821d97 (diff) | |
download | protobuf-14be563f00b5fd04e50c44420bef6e5061080156.tar.gz protobuf-14be563f00b5fd04e50c44420bef6e5061080156.tar.bz2 protobuf-14be563f00b5fd04e50c44420bef6e5061080156.zip |
Down-integrate proto2 namespace fix.
Diffstat (limited to 'python/google/protobuf/pyext/message.cc')
-rw-r--r-- | python/google/protobuf/pyext/message.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/python/google/protobuf/pyext/message.cc b/python/google/protobuf/pyext/message.cc index e138c93d..2205f12f 100644 --- a/python/google/protobuf/pyext/message.cc +++ b/python/google/protobuf/pyext/message.cc @@ -171,7 +171,7 @@ static int AddDescriptors(PyObject* cls, const Descriptor* descriptor) { // <message descriptor>.extensions_by_name[name] // which was defined previously. for (int i = 0; i < descriptor->extension_count(); ++i) { - const FieldDescriptor* field = descriptor->extension(i); + const google::protobuf::FieldDescriptor* field = descriptor->extension(i); ScopedPyObjectPtr extension_field(PyFieldDescriptor_FromDescriptor(field)); if (extension_field == NULL) { return -1; @@ -2344,7 +2344,7 @@ static PyObject* RichCompare(CMessage* self, PyObject* other, int opid) { if (!PyObject_TypeCheck(other, CMessage_Type)) { equals = false; } - const Message* other_message = + const google::protobuf::Message* other_message = reinterpret_cast<CMessage*>(other)->message; // If messages don't have the same descriptors, they are not equal. if (equals && @@ -2352,7 +2352,7 @@ static PyObject* RichCompare(CMessage* self, PyObject* other, int opid) { equals = false; } // Check the message contents. - if (equals && !util::MessageDifferencer::Equals( + if (equals && !google::protobuf::util::MessageDifferencer::Equals( *self->message, *reinterpret_cast<CMessage*>(other)->message)) { equals = false; |