aboutsummaryrefslogtreecommitdiffhomepage
path: root/python/google/protobuf/pyext
diff options
context:
space:
mode:
authorGravatar Josh Haberman <jhaberman@gmail.com>2015-10-06 14:53:47 -0700
committerGravatar Josh Haberman <jhaberman@gmail.com>2015-10-28 17:05:47 -0700
commit70ffefa5510321de6b02a3844a2d4cd19e107d1f (patch)
tree5a66c4d1b3ab895d3f55e4bdaa8cdcf8afa96b77 /python/google/protobuf/pyext
parent00700b72191d620402d5eb0390b5460b35c93e05 (diff)
Fixed compile errors after rebase.
Diffstat (limited to 'python/google/protobuf/pyext')
-rw-r--r--python/google/protobuf/pyext/message.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/python/google/protobuf/pyext/message.cc b/python/google/protobuf/pyext/message.cc
index db58df54..72f51ec1 100644
--- a/python/google/protobuf/pyext/message.cc
+++ b/python/google/protobuf/pyext/message.cc
@@ -313,7 +313,7 @@ static PyObject* New(PyTypeObject* type,
// Add the message to the DescriptorPool.
if (cdescriptor_pool::RegisterMessageClass(newtype->py_descriptor_pool,
- descriptor, result) < 0) {
+ descriptor, result.get()) < 0) {
return NULL;
}
@@ -1946,8 +1946,6 @@ static PyObject* RegisterExtension(PyObject* cls,
if (descriptor == NULL) {
return NULL;
}
- const Descriptor* cmessage_descriptor = GetMessageDescriptor(
- reinterpret_cast<PyTypeObject*>(cls));
ScopedPyObjectPtr extensions_by_name(
PyObject_GetAttr(cls, k_extensions_by_name));