diff options
author | tony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-06 19:55:16 +0000 |
---|---|---|
committer | tony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-06 19:55:16 +0000 |
commit | c4e52f0d8fa148f543d3e7b2562164e9bf5605aa (patch) | |
tree | 86a455dd54d4542026ff3059ac939dc809a09b26 /courgette/courgette_tool.cc | |
parent | 2fd94bbeefa87a83a96c65ff998add7d7fb0f908 (diff) | |
download | chromium_src-c4e52f0d8fa148f543d3e7b2562164e9bf5605aa.zip chromium_src-c4e52f0d8fa148f543d3e7b2562164e9bf5605aa.tar.gz chromium_src-c4e52f0d8fa148f543d3e7b2562164e9bf5605aa.tar.bz2 |
Use GetSwitchValueASCII.
BUG=24672
TEST=None
Original patch by Thiago Farina <thiago.farina@gmail.com> at
http://codereview.chromium.org/296004
Review URL: http://codereview.chromium.org/373013
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31269 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'courgette/courgette_tool.cc')
-rw-r--r-- | courgette/courgette_tool.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/courgette/courgette_tool.cc b/courgette/courgette_tool.cc index ea5106e..f118bd9 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 + |