summaryrefslogtreecommitdiffstats
path: root/courgette
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-13 02:07:25 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-13 02:07:25 +0000
commitb7e0a2a3ccf5aceb891d5e1dfaf9db1bbaaa5f78 (patch)
treed723b8556ad386a0b8a6e999e3a842e0bfe6f9b0 /courgette
parent1976d41ac728fcceb30f2df3c243cb7417f538f1 (diff)
downloadchromium_src-b7e0a2a3ccf5aceb891d5e1dfaf9db1bbaaa5f78.zip
chromium_src-b7e0a2a3ccf5aceb891d5e1dfaf9db1bbaaa5f78.tar.gz
chromium_src-b7e0a2a3ccf5aceb891d5e1dfaf9db1bbaaa5f78.tar.bz2
Use ASCII strings for switch names.
Review URL: http://codereview.chromium.org/270062 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28779 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'courgette')
-rw-r--r--courgette/courgette_tool.cc20
1 files changed, 10 insertions, 10 deletions
diff --git a/courgette/courgette_tool.cc b/courgette/courgette_tool.cc
index 91f02aa6..ea5106e 100644
--- a/courgette/courgette_tool.cc
+++ b/courgette/courgette_tool.cc
@@ -349,22 +349,22 @@ int main(int argc, const char* argv[]) {
CommandLine::Init(argc, argv);
const CommandLine& command_line = *CommandLine::ForCurrentProcess();
- bool cmd_dis = command_line.HasSwitch(L"dis");
- bool cmd_asm = command_line.HasSwitch(L"asm");
- bool cmd_disadj = command_line.HasSwitch(L"disadj");
- bool cmd_make_patch = command_line.HasSwitch(L"gen");
- bool cmd_apply_patch = command_line.HasSwitch(L"apply");
- bool cmd_make_bsdiff_patch = command_line.HasSwitch(L"genbsdiff");
- bool cmd_apply_bsdiff_patch = command_line.HasSwitch(L"applybsdiff");
- bool cmd_spread_1_adjusted = command_line.HasSwitch(L"gen1a");
- bool cmd_spread_1_unadjusted = command_line.HasSwitch(L"gen1u");
+ bool cmd_dis = command_line.HasSwitch("dis");
+ bool cmd_asm = command_line.HasSwitch("asm");
+ bool cmd_disadj = command_line.HasSwitch("disadj");
+ bool cmd_make_patch = command_line.HasSwitch("gen");
+ bool cmd_apply_patch = command_line.HasSwitch("apply");
+ bool cmd_make_bsdiff_patch = command_line.HasSwitch("genbsdiff");
+ bool cmd_apply_bsdiff_patch = command_line.HasSwitch("applybsdiff");
+ bool cmd_spread_1_adjusted = command_line.HasSwitch("gen1a");
+ bool cmd_spread_1_unadjusted = command_line.HasSwitch("gen1u");
std::vector<std::wstring> values = command_line.GetLooseValues();
// '-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(L"repeat");
+ std::wstring repeat_switch = command_line.GetSwitchValue("repeat");
if (!repeat_switch.empty())
if (!WideStringToInt(repeat_switch, &repeat_count))
repeat_count = 1;