Index: samples/process.cc |
diff --git a/samples/process.cc b/samples/process.cc |
index 7cfbc9ee1e96c0d572d279abfd526e7f3708db28..b279a8d32ef60cb2bd6fe1a42657fd8c777fc4c4 100644 |
--- a/samples/process.cc |
+++ b/samples/process.cc |
@@ -574,7 +574,7 @@ StringHttpRequest::StringHttpRequest(const string& path, |
void ParseOptions(int argc, |
char* argv[], |
- map<string, string>& options, |
+ map<string, string>* options, |
string* file) { |
for (int i = 1; i < argc; i++) { |
string arg = argv[i]; |
@@ -584,7 +584,7 @@ void ParseOptions(int argc, |
} else { |
string key = arg.substr(0, index); |
string value = arg.substr(index+1); |
- options[key] = value; |
+ (*options)[key] = value; |
} |
} |
} |
@@ -646,7 +646,7 @@ int main(int argc, char* argv[]) { |
v8::V8::InitializeICU(); |
map<string, string> options; |
string file; |
- ParseOptions(argc, argv, options, &file); |
+ ParseOptions(argc, argv, &options, &file); |
if (file.empty()) { |
fprintf(stderr, "No script was specified.\n"); |
return 1; |