Skip to content

Commit

Permalink
Merge pull request protocolbuffers#931 from xfxyjwf/fix_compile
Browse files Browse the repository at this point in the history
Fix compilation errors when built internally.
  • Loading branch information
xfxyjwf committed Nov 2, 2015
2 parents 59635c1 + 9659ea9 commit ec9f45b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/google/protobuf/util/field_comparator_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,10 @@

#include <google/protobuf/unittest.pb.h>
#include <google/protobuf/descriptor.h>
#include <gtest/gtest.h>
#include <google/protobuf/stubs/mathutil.h>

#include <gtest/gtest.h>

namespace google {
namespace protobuf {
namespace util {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,7 @@ void ProtoStreamObjectWriter::ProtoElement::TakeOneofIndex(int32 index) {

bool ProtoStreamObjectWriter::ProtoElement::InsertMapKeyIfNotPresent(
StringPiece map_key) {
return InsertIfNotPresent(&map_keys_, map_key);
return InsertIfNotPresent(&map_keys_, map_key.ToString());
}

inline void ProtoStreamObjectWriter::InvalidName(StringPiece unknown_name,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ class LIBPROTOBUF_EXPORT ProtoStreamObjectWriter : public StructuredObjectWriter

// Set of map keys already seen for the type_. Used to validate incoming
// messages so no map key appears more than once.
hash_set<StringPiece> map_keys_;
hash_set<string> map_keys_;

GOOGLE_DISALLOW_IMPLICIT_CONSTRUCTORS(ProtoElement);
};
Expand Down

0 comments on commit ec9f45b

Please sign in to comment.