diff src/variables.cc @ 2800:9aeba8e006a4

[project @ 1997-03-09 09:50:20 by jwe]
author jwe
date Sun, 09 Mar 1997 09:50:39 +0000
parents 74bc1ede3c3d
children bca5fbab2e52
line wrap: on
line diff
--- a/src/variables.cc
+++ b/src/variables.cc
@@ -343,7 +343,7 @@
 
   symbol_record *sr = curr_sym_tab->lookup (name, 0, 0);
 
-  retval = (double) (sr && sr->is_linked_to_global ());
+  retval = static_cast<double> (sr && sr->is_linked_to_global ());
 
   return retval;
 }
@@ -642,7 +642,7 @@
 safe_fclose (void *f)
 {
   if (f)
-    fclose ((FILE *) f);
+    fclose (static_cast<FILE *> (f));
 }
 
 static int
@@ -671,7 +671,7 @@
 
   FILE *ffile = get_input_from_file (ff, 0);
 
-  add_unwind_protect (safe_fclose, (void *) ffile);
+  add_unwind_protect (safe_fclose, ffile);
 
   if (ffile)
     {
@@ -1542,7 +1542,7 @@
       && ! xisnan (val))
     {
       int ival = NINT (val);
-      if (ival >= 0 && (double) ival == val)
+      if (ival >= 0 && ival == val)
 	{
 	  Vhistory_size = ival;
 	  octave_command_history.set_size (ival);
@@ -1616,7 +1616,7 @@
   DEFCONST (argv, , 0, 0,
     "the command line arguments this program was invoked with");
 
-  DEFVAR (echo_executing_commands, (double) ECHO_OFF, 0,
+  DEFVAR (echo_executing_commands, static_cast<double> (ECHO_OFF), 0,
 	  echo_executing_commands,
     "echo commands as they are executed");