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
3d46dad1
Commit
3d46dad1
authored
Sep 27, 2012
by
xiaofeng@google.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use string::size_type instead of int for results of string.find() etc. -- patch from hans
parent
fcb8a50b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
command_line_interface.cc
src/google/protobuf/compiler/command_line_interface.cc
+1
-1
descriptor.cc
src/google/protobuf/descriptor.cc
+1
-1
No files found.
src/google/protobuf/compiler/command_line_interface.cc
View file @
3d46dad1
...
...
@@ -926,7 +926,7 @@ CommandLineInterface::InterpretArgument(const string& name,
string
virtual_path
;
string
disk_path
;
int
equals_pos
=
parts
[
i
].
find_first_of
(
'='
);
string
::
size_type
equals_pos
=
parts
[
i
].
find_first_of
(
'='
);
if
(
equals_pos
==
string
::
npos
)
{
virtual_path
=
""
;
disk_path
=
parts
[
i
];
...
...
src/google/protobuf/descriptor.cc
View file @
3d46dad1
...
...
@@ -2673,7 +2673,7 @@ Symbol DescriptorBuilder::LookupSymbolNoPlaceholder(
// }
// So, we look for just "Foo" first, then look for "Bar.baz" within it if
// found.
int
name_dot_pos
=
name
.
find_first_of
(
'.'
);
string
::
size_type
name_dot_pos
=
name
.
find_first_of
(
'.'
);
string
first_part_of_name
;
if
(
name_dot_pos
==
string
::
npos
)
{
first_part_of_name
=
name
;
...
...
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