diff options
author | Jonas Pfenniger <jonas@pfenniger.name> | 2010-02-24 22:11:08 +0100 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2010-02-24 13:16:52 -0800 |
commit | 8f59cccb75904a2780cc7d9e4cb1adc63733bd4e (patch) | |
tree | ee41362dba737420973cca5fbb21a6b8992f0c44 /src | |
parent | e0ecf4f8f58f1703b9c9db54376316242530d39c (diff) | |
download | node-new-8f59cccb75904a2780cc7d9e4cb1adc63733bd4e.tar.gz |
Removed deprecation errors in src/node.cc
Removed constness on string litterals. This should cause no problem
since we're not modifying them.
Diffstat (limited to 'src')
-rw-r--r-- | src/node.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/node.cc b/src/node.cc index ebf679ada8..fc17fc0b44 100644 --- a/src/node.cc +++ b/src/node.cc @@ -1197,7 +1197,7 @@ static void ParseArgs(int *argc, char **argv) { const char *arg = argv[i]; if (strstr(arg, "--debug") == arg) { ParseDebugOpt(arg); - argv[i] = reinterpret_cast<const char*>(""); + argv[i] = const_cast<char*>(""); option_end_index = i; } else if (strcmp(arg, "--version") == 0 || strcmp(arg, "-v") == 0) { printf("%s\n", NODE_VERSION); @@ -1209,7 +1209,7 @@ static void ParseArgs(int *argc, char **argv) { PrintHelp(); exit(0); } else if (strcmp(arg, "--v8-options") == 0) { - argv[i] = reinterpret_cast<const char*>("--help"); + argv[i] = const_cast<char*>("--help"); option_end_index = i+1; } else if (argv[i][0] != '-') { option_end_index = i-1; |