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

Unified Diff: courgette/courgette_tool.cc

Issue 296004: Use GetSwitchValueASCII. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 1 month 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 | « chrome/test/unit/chrome_test_suite.h ('k') | media/bench/bench.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: courgette/courgette_tool.cc
===================================================================
--- courgette/courgette_tool.cc (revision 31117)
+++ courgette/courgette_tool.cc (working copy)
@@ -364,9 +364,9 @@
// '-repeat=N' is for debugging. Running many iterations can reveal leaks and
// bugs in cleanup.
int repeat_count = 1;
- std::wstring repeat_switch = command_line.GetSwitchValue("repeat");
+ std::string repeat_switch = command_line.GetSwitchValueASCII("repeat");
if (!repeat_switch.empty())
- if (!WideStringToInt(repeat_switch, &repeat_count))
+ if (!StringToInt(repeat_switch, &repeat_count))
repeat_count = 1;
if (cmd_dis + cmd_asm + cmd_disadj + cmd_make_patch + cmd_apply_patch +
« no previous file with comments | « chrome/test/unit/chrome_test_suite.h ('k') | media/bench/bench.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698