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
5eb34cd7
Commit
5eb34cd7
authored
Dec 14, 2018
by
Josh Haberman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More fixes.
parent
401db44e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
objectivec_helpers.cc
...google/protobuf/compiler/objectivec/objectivec_helpers.cc
+9
-7
No files found.
src/google/protobuf/compiler/objectivec/objectivec_helpers.cc
View file @
5eb34cd7
...
...
@@ -787,7 +787,7 @@ string GPBGenericValueFieldName(const FieldDescriptor* field) {
// Some compilers report reaching end of function even though all cases of
// the enum are handed in the switch.
GOOGLE_LOG
(
FATAL
)
<<
"Can't get here."
;
return
NULL
;
return
string
()
;
}
...
...
@@ -1706,21 +1706,23 @@ bool ImportWriter::ProtoFrameworkCollector::ConsumeLine(
offset
=
proto_file_list
.
length
();
}
StringPiece
proto_file
(
proto_file_list
,
start
,
offset
-
start
);
StringPiece
proto_file
=
proto_file_list
.
substr
(
start
,
offset
-
start
);
TrimWhitespace
(
&
proto_file
);
if
(
proto_file
.
size
()
!=
0
)
{
std
::
map
<
string
,
string
>::
iterator
existing_entry
=
map_
->
find
(
string
(
proto_file
));
if
(
existing_entry
!=
map_
->
end
())
{
std
::
cerr
<<
"warning: duplicate proto file reference, replacing framework entry for '"
<<
string
(
proto_file
)
<<
"' with '"
<<
string
(
framework_name
)
<<
"' (was '"
<<
existing_entry
->
second
<<
"')."
<<
std
::
endl
;
std
::
cerr
<<
"warning: duplicate proto file reference, replacing "
"framework entry for '"
<<
string
(
proto_file
)
<<
"' with '"
<<
string
(
framework_name
)
<<
"' (was '"
<<
existing_entry
->
second
<<
"')."
<<
std
::
endl
;
std
::
cerr
.
flush
();
}
if
(
proto_file
.
find
(
' '
)
!=
StringPiece
::
npos
)
{
std
::
cerr
<<
"note: framework mapping file had a proto file with a space in, hopefully that isn't a missing comma: '"
<<
string
(
proto_file
)
<<
"'"
<<
std
::
endl
;
std
::
cerr
<<
"note: framework mapping file had a proto file with a "
"space in, hopefully that isn't a missing comma: '"
<<
string
(
proto_file
)
<<
"'"
<<
std
::
endl
;
std
::
cerr
.
flush
();
}
...
...
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