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

Unified Diff: o3d/converter/cross/converter_main.cc

Issue 270062: Use ASCII strings for switch names. (Closed)
Patch Set: victory Created 11 years, 2 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 | « net/tools/fetch/fetch_server.cc ('k') | o3d/converter/cross/verifier_main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: o3d/converter/cross/converter_main.cc
diff --git a/o3d/converter/cross/converter_main.cc b/o3d/converter/cross/converter_main.cc
index f7c60c50e305acafa7ff5f0ceb9edd1c99fc3d49..bb1dc7d65773b9b20fd1feec56d0a3d41f458f83 100644
--- a/o3d/converter/cross/converter_main.cc
+++ b/o3d/converter/cross/converter_main.cc
@@ -109,23 +109,23 @@ int CrossMain(int argc, char**argv) {
}
o3d::converter::Options options;
- options.condition = !command_line->HasSwitch(L"no-condition");
- options.pretty_print = command_line->HasSwitch(L"pretty-print");
- options.binary = !command_line->HasSwitch(L"no-binary");
- options.json_only = !command_line->HasSwitch(L"json-only");
- if (command_line->HasSwitch(L"base-path")) {
+ options.condition = !command_line->HasSwitch("no-condition");
+ options.pretty_print = command_line->HasSwitch("pretty-print");
+ options.binary = !command_line->HasSwitch("no-binary");
+ options.json_only = !command_line->HasSwitch("json-only");
+ if (command_line->HasSwitch("base-path")) {
options.base_path = o3d::WideToFilePath(
- command_line->GetSwitchValue(L"base-path"));
+ command_line->GetSwitchValue("base-path"));
}
- if (command_line->HasSwitch(L"asset-paths")) {
+ if (command_line->HasSwitch("asset-paths")) {
std::vector<std::wstring> paths;
- SplitString(command_line->GetSwitchValue(L"asset-paths"), ',', &paths);
+ SplitString(command_line->GetSwitchValue("asset-paths"), ',', &paths);
for (size_t ii = 0; ii < paths.size(); ++ii) {
options.file_paths.push_back(o3d::WideToFilePath(paths[ii]));
}
}
- if (command_line->HasSwitch(L"up-axis")) {
- wstring up_axis_string = command_line->GetSwitchValue(L"up-axis");
+ if (command_line->HasSwitch("up-axis")) {
+ wstring up_axis_string = command_line->GetSwitchValue("up-axis");
int x, y, z;
if (swscanf(up_axis_string.c_str(), L"%d,%d,%d", &x, &y, &z) != 3) {
std::cerr << "Invalid --up-axis value. Should be --up-axis=x,y,z\n";
« no previous file with comments | « net/tools/fetch/fetch_server.cc ('k') | o3d/converter/cross/verifier_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698