diff options
author | vjpai <vpai@google.com> | 2016-06-16 15:43:23 -0700 |
---|---|---|
committer | Feng Xiao <xfxyjwf@gmail.com> | 2016-06-17 11:24:23 -0700 |
commit | 343363aa6cec41aaccaff47b9faabe5c12e79227 (patch) | |
tree | 8136a6b54a0fbb1560e935cfb66067a0447455f5 | |
parent | 4e5dadb13650fa12893edfcc0433ec1eb1ba5829 (diff) | |
download | protobuf-343363aa6cec41aaccaff47b9faabe5c12e79227.tar.gz protobuf-343363aa6cec41aaccaff47b9faabe5c12e79227.tar.bz2 protobuf-343363aa6cec41aaccaff47b9faabe5c12e79227.zip |
Address review comments on function name
-rw-r--r-- | src/google/protobuf/map.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/google/protobuf/map.h b/src/google/protobuf/map.h index 7f4acd0d..31593c1a 100644 --- a/src/google/protobuf/map.h +++ b/src/google/protobuf/map.h @@ -587,7 +587,7 @@ class Map { explicit MapAllocator(Arena* arena) : arena_(arena) {} template <typename X> MapAllocator(const MapAllocator<X>& allocator) - : arena_(allocator.arena_internal_only()) {} + : arena_(allocator.arena()) {} pointer allocate(size_type n, const_pointer hint = 0) { // If arena is not given, malloc needs to be called which doesn't @@ -652,7 +652,7 @@ class Map { // To support gcc-4.4, which does not properly // support templated friend classes - Arena* arena_internal_only() const { + Arena* arena() const { return arena_; } |