Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
ec9f45b1
Commit
ec9f45b1
authored
Nov 02, 2015
by
Feng Xiao
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #931 from xfxyjwf/fix_compile
Fix compilation errors when built internally.
parents
59635c13
9659ea9e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
+4
-3
field_comparator_test.cc
src/google/protobuf/util/field_comparator_test.cc
+2
-1
protostream_objectwriter.cc
...google/protobuf/util/internal/protostream_objectwriter.cc
+1
-1
protostream_objectwriter.h
src/google/protobuf/util/internal/protostream_objectwriter.h
+1
-1
No files found.
src/google/protobuf/util/field_comparator_test.cc
View file @
ec9f45b1
...
...
@@ -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
{
...
...
src/google/protobuf/util/internal/protostream_objectwriter.cc
View file @
ec9f45b1
...
...
@@ -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
,
...
...
src/google/protobuf/util/internal/protostream_objectwriter.h
View file @
ec9f45b1
...
...
@@ -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
);
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment