Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(210)

Unified Diff: runtime/bin/main.cc

Issue 10388024: Address review comments on Options.executable change. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « corelib/src/options.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/main.cc
diff --git a/runtime/bin/main.cc b/runtime/bin/main.cc
index 6f3a9a3ff5c0dc47e13b196a7157afb7c0ce0e27..376f82672974876919b47cb74da9ef9d9feb18ee 100644
--- a/runtime/bin/main.cc
+++ b/runtime/bin/main.cc
@@ -178,10 +178,10 @@ static int ParseArguments(int argc,
// Parse out the vm options.
while ((i < argc) && IsValidFlag(argv[i], kPrefix, kPrefixLen)) {
if (ProcessMainOptions(argv[i])) {
- ++i;
+ i++;
} else {
vm_options->AddArgument(argv[i]);
- ++i;
+ i++;
}
}
if (generate_pprof_symbols_filename != NULL) {
@@ -191,7 +191,7 @@ static int ParseArguments(int argc,
// Get the script name.
if (i < argc) {
*script_name = argv[i];
- ++i;
+ i++;
} else {
return -1;
}
@@ -199,7 +199,7 @@ static int ParseArguments(int argc,
// Parse out options to be passed to dart main.
while (i < argc) {
dart_options->AddArgument(argv[i]);
- i += 1;
+ i++;
}
return 0;
« no previous file with comments | « corelib/src/options.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698