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

Unified Diff: samples/pdfium_test.cc

Issue 492523002: Fixed command line parting when no output is needed. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Tue Aug 19 14:14:39 PDT 2014 Created 6 years, 4 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/pdfium_test.cc
diff --git a/samples/pdfium_test.cc b/samples/pdfium_test.cc
index 9a6513dc101080c89f2a9d6d439d4ecbb0745754..e92d7a1250124be24345b55686f573b8493bb068 100644
--- a/samples/pdfium_test.cc
+++ b/samples/pdfium_test.cc
@@ -198,7 +198,8 @@ bool ParseCommandLine(int argc, const char* argv[], OutputFormat* output_format,
if (strcmp(argv[cur_arg], "--bmp") == 0)
*output_format = OUTPUT_BMP;
#endif
- cur_arg++;
+ if (*output_format != OUTPUT_NONE)
+ cur_arg++;
}
if (cur_arg >= argc)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698