Skip to content

Commit

Permalink
Merge pull request #1 from dhirschfeld/vs2008-fix
Browse files Browse the repository at this point in the history
Added const qualifier to iterator to enable compiling with VS2008
  • Loading branch information
xfxyjwf committed Sep 2, 2014
2 parents aa51f2a + b7ec1a9 commit 6890263
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/google/protobuf/compiler/command_line_interface.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1559,7 +1559,7 @@ void FormatFreeFieldNumbers(const string& name,
string output;
StringAppendF(&output, "%-35s free:", name.c_str());
int next_free_number = 1;
for (set<FieldRange>::iterator i = ranges.begin();
for (set<FieldRange>::const_iterator i = ranges.begin();
i != ranges.end(); ++i) {
// This happens when groups re-use parent field numbers, in which
// case we skip the FieldRange entirely.
Expand Down

0 comments on commit 6890263

Please sign in to comment.