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

Unified Diff: courgette/courgette_tool.cc

Issue 373013: Use GetSwitchValueASCII. (Closed)
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
diff --git a/courgette/courgette_tool.cc b/courgette/courgette_tool.cc
index ea5106eb5bf88143e6fd50493bb5b4a6d14ca34c..f118bd9abbc99ef5de6df37f386f04946b32506e 100644
--- a/courgette/courgette_tool.cc
+++ b/courgette/courgette_tool.cc
@@ -364,9 +364,9 @@ int main(int argc, const char* argv[]) {
// '-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