diff options
author | Michael Allen <mda000@gmail.com> | 2017-04-17 10:59:31 -0700 |
---|---|---|
committer | Michael Allen <mda000@gmail.com> | 2017-04-17 10:59:31 -0700 |
commit | 2240a785f961721854bb10d68991764b7059de7e (patch) | |
tree | e12886b6e887f2c4520f4502c93fb8ed04f036fd /src/google | |
parent | 8aa927f08f6b92808976b0c22fa4a45850279987 (diff) | |
download | protobuf-2240a785f961721854bb10d68991764b7059de7e.tar.gz protobuf-2240a785f961721854bb10d68991764b7059de7e.tar.bz2 protobuf-2240a785f961721854bb10d68991764b7059de7e.zip |
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')
-rw-r--r-- | src/google/protobuf/repeated_field.h | 2 |
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) |