aboutsummaryrefslogtreecommitdiff
path: root/src/google/protobuf/compiler/command_line_interface.cc
diff options
context:
space:
mode:
authorJisi Liu <liujisi@google.com>2017-02-28 10:57:41 -0800
committerGitHub <noreply@github.com>2017-02-28 10:57:41 -0800
commit5274d6ee314a237f6626b5b4633c9f87574ad46d (patch)
tree9388ffcf43417a2e56c66f6470c0e8b9fc5e6453 /src/google/protobuf/compiler/command_line_interface.cc
parent83b0cc9ba6bd2f1a104f5e3d2d7b471b8fab1001 (diff)
parentffde972ac705e70f597267537b033d7c00ea54c5 (diff)
downloadprotobuf-5274d6ee314a237f6626b5b4633c9f87574ad46d.tar.gz
protobuf-5274d6ee314a237f6626b5b4633c9f87574ad46d.tar.bz2
protobuf-5274d6ee314a237f6626b5b4633c9f87574ad46d.zip
Merge pull request #2770 from xfxyjwf/fixcmake
Remove the use of C++11 features.
Diffstat (limited to 'src/google/protobuf/compiler/command_line_interface.cc')
-rw-r--r--src/google/protobuf/compiler/command_line_interface.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/google/protobuf/compiler/command_line_interface.cc b/src/google/protobuf/compiler/command_line_interface.cc
index 0c9b1fb5..1914fc48 100644
--- a/src/google/protobuf/compiler/command_line_interface.cc
+++ b/src/google/protobuf/compiler/command_line_interface.cc
@@ -1038,8 +1038,8 @@ CommandLineInterface::ParseArguments(int argc, const char* const argv[]) {
continue;
}
bool foundImplicitPlugin = false;
- for (std::vector<OutputDirective>::const_iterator j = output_directives_.cbegin();
- j != output_directives_.cend(); ++j) {
+ for (std::vector<OutputDirective>::const_iterator j = output_directives_.begin();
+ j != output_directives_.end(); ++j) {
if (j->generator == NULL) {
string plugin_name = PluginName(plugin_prefix_ , j->name);
if (plugin_name == i->first) {