aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/google/protobuf/repeated_field.h
diff options
context:
space:
mode:
authorGravatar Michael Allen <mda000@gmail.com>2017-04-17 10:59:31 -0700
committerGravatar Michael Allen <mda000@gmail.com>2017-04-17 10:59:31 -0700
commit2240a785f961721854bb10d68991764b7059de7e (patch)
treee12886b6e887f2c4520f4502c93fb8ed04f036fd /src/google/protobuf/repeated_field.h
parent8aa927f08f6b92808976b0c22fa4a45850279987 (diff)
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.
Diffstat (limited to 'src/google/protobuf/repeated_field.h')
-rw-r--r--src/google/protobuf/repeated_field.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/google/protobuf/repeated_field.h b/src/google/protobuf/repeated_field.h
index db5893b5..0f502534 100644
--- a/src/google/protobuf/repeated_field.h
+++ b/src/google/protobuf/repeated_field.h
@@ -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)