Commit 0c1dea87 authored by Francois Bertel's avatar Francois Bertel
Browse files

COMP:Revert back some old-style casts to remove some other warnings about...

COMP:Revert back some old-style casts to remove some other warnings about deprecated conversion from string constant to char*.
parent d869eea4
......@@ -522,7 +522,7 @@ void get_args(FILE *fp, int i)
break;
case 0x109:
case 0x309:
fprintf(fp," temp%i = (%s *)(vtkTclGetPointerFromObject(argv[%i],static_cast<char *>(\"%s\"),interp,error));\n",i,currentFunction->ArgClasses[i],start_arg,
fprintf(fp," temp%i = (%s *)(vtkTclGetPointerFromObject(argv[%i],(char *)(\"%s\"),interp,error));\n",i,currentFunction->ArgClasses[i],start_arg,
currentFunction->ArgClasses[i]);
break;
case 0x2:
......@@ -808,7 +808,7 @@ void vtkParseOutput(FILE *fp, FileInfo *data)
fprintf(fp," tempd = 0; tempd = tempd;\n");
fprintf(fp," temps[0] = 0; temps[0] = temps[0];\n\n");
fprintf(fp," if (argc < 2)\n {\n Tcl_SetResult(interp, static_cast<char *>(\"Could not find requested method.\"), TCL_VOLATILE);\n return TCL_ERROR;\n }\n");
fprintf(fp," if (argc < 2)\n {\n Tcl_SetResult(interp,(char *)(\"Could not find requested method.\"), TCL_VOLATILE);\n return TCL_ERROR;\n }\n");
/* stick in the typecasting and delete functionality here */
fprintf(fp," if (!interp)\n {\n");
......@@ -832,7 +832,7 @@ void vtkParseOutput(FILE *fp, FileInfo *data)
{
fprintf(fp," if (!strcmp(\"GetSuperClassName\",argv[1]))\n");
fprintf(fp," {\n");
fprintf(fp," Tcl_SetResult(interp,static_cast<char *>(\"%s\"), TCL_VOLATILE);\n",data->SuperClasses[0]);
fprintf(fp," Tcl_SetResult(interp,(char *)(\"%s\"), TCL_VOLATILE);\n",data->SuperClasses[0]);
fprintf(fp," return TCL_OK;\n");
fprintf(fp," }\n\n");
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment