diff --git a/src/google/protobuf/map.h b/src/google/protobuf/map.h index f99c5a73..a9937b9b 100644 --- a/src/google/protobuf/map.h +++ b/src/google/protobuf/map.h @@ -119,7 +119,7 @@ class MapIterator { private: typename hash_map::iterator it_; - friend Map; + friend class Map; }; // google::protobuf::Map is an associative container type used to store protobuf map diff --git a/src/google/protobuf/map_test.cc b/src/google/protobuf/map_test.cc index 9d4016d3..f3583a83 100644 --- a/src/google/protobuf/map_test.cc +++ b/src/google/protobuf/map_test.cc @@ -85,7 +85,7 @@ class MapImplTest : public ::testing::Test { EXPECT_TRUE(map_.empty()); EXPECT_EQ(0, map_.size()); } - ~MapImplTest() override {} + ~MapImplTest() {} void ExpectSingleElement(int32 key, int32 value) { EXPECT_FALSE(map_.empty());