Commit 2240a785 authored by Michael Allen's avatar Michael Allen

Simplify the Element dtor invocation when freeing elements in

InternalDeallocate to avoid confusing the compiler when there's
a class named Element already defined in the global namespace.
parent 8aa927f0
......@@ -291,7 +291,7 @@ class RepeatedField PROTOBUF_FINAL {
Element* e = &rep->elements[0];
Element* limit = &rep->elements[size];
for (; e < limit; e++) {
e->Element::~Element();
e->~Element();
}
if (rep->arena == NULL) {
#if defined(__GXX_DELETE_WITH_SIZE__) || defined(__cpp_sized_deallocation)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment