From 8f59cccb75904a2780cc7d9e4cb1adc63733bd4e Mon Sep 17 00:00:00 2001 From: Jonas Pfenniger Date: Wed, 24 Feb 2010 22:11:08 +0100 Subject: [PATCH] Removed deprecation errors in src/node.cc Removed constness on string litterals. This should cause no problem since we're not modifying them. --- src/node.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/node.cc b/src/node.cc index ebf679a..fc17fc0 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(""); + argv[i] = const_cast(""); 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("--help"); + argv[i] = const_cast("--help"); option_end_index = i+1; } else if (argv[i][0] != '-') { option_end_index = i-1; -- 2.7.4