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
eaf3451c
Commit
eaf3451c
authored
8 years ago
by
Jisi Liu
Committed by
GitHub
8 years ago
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1753 from xfxyjwf/fixup
Fix problems detected when integrating the code to our internal repo.
parents
0d5091ee
d84d0ca1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
10 deletions
+2
-10
stringpiece.h
src/google/protobuf/stubs/stringpiece.h
+0
-8
proto_writer.cc
src/google/protobuf/util/internal/proto_writer.cc
+2
-2
No files found.
src/google/protobuf/stubs/stringpiece.h
View file @
eaf3451c
...
...
@@ -222,14 +222,6 @@ class LIBPROTOBUF_EXPORT StringPiece {
:
ptr_
(
str
.
data
()),
length_
(
0
)
{
length_
=
CheckedSsizeTFromSizeT
(
str
.
size
());
}
#if defined(HAS_GLOBAL_STRING)
template
<
class
Allocator
>
StringPiece
(
// NOLINT(runtime/explicit)
const
basic_string
<
char
,
std
::
char_traits
<
char
>
,
Allocator
>&
str
)
:
ptr_
(
str
.
data
()),
length_
(
0
)
{
length_
=
CheckedSsizeTFromSizeT
(
str
.
size
());
}
#endif
StringPiece
(
const
char
*
offset
,
stringpiece_ssize_type
len
)
:
ptr_
(
offset
),
length_
(
len
)
{
...
...
This diff is collapsed.
Click to expand it.
src/google/protobuf/util/internal/proto_writer.cc
View file @
eaf3451c
...
...
@@ -64,6 +64,7 @@ ProtoWriter::ProtoWriter(TypeResolver* type_resolver,
typeinfo_
(
TypeInfo
::
NewTypeInfo
(
type_resolver
)),
own_typeinfo_
(
true
),
done_
(
false
),
ignore_unknown_fields_
(
false
),
element_
(
NULL
),
size_insert_
(),
output_
(
output
),
...
...
@@ -71,7 +72,6 @@ ProtoWriter::ProtoWriter(TypeResolver* type_resolver,
adapter_
(
&
buffer_
),
stream_
(
new
CodedOutputStream
(
&
adapter_
)),
listener_
(
listener
),
ignore_unknown_fields_
(
false
),
invalid_depth_
(
0
),
tracker_
(
new
ObjectLocationTracker
())
{}
...
...
@@ -82,6 +82,7 @@ ProtoWriter::ProtoWriter(const TypeInfo* typeinfo,
typeinfo_
(
typeinfo
),
own_typeinfo_
(
false
),
done_
(
false
),
ignore_unknown_fields_
(
false
),
element_
(
NULL
),
size_insert_
(),
output_
(
output
),
...
...
@@ -89,7 +90,6 @@ ProtoWriter::ProtoWriter(const TypeInfo* typeinfo,
adapter_
(
&
buffer_
),
stream_
(
new
CodedOutputStream
(
&
adapter_
)),
listener_
(
listener
),
ignore_unknown_fields_
(
false
),
invalid_depth_
(
0
),
tracker_
(
new
ObjectLocationTracker
())
{}
...
...
This diff is collapsed.
Click to expand it.
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