diff liboctave/Objective.cc @ 461:00f8b2242a18

[project @ 1994-06-06 00:45:57 by jwe]
author jwe
date Mon, 06 Jun 1994 00:57:54 +0000
parents 780cbbc57b7c
children 714fd17fca28
line wrap: on
line diff
--- a/liboctave/Objective.cc
+++ b/liboctave/Objective.cc
@@ -1,7 +1,7 @@
 // Objective.cc                                             -*- C++ -*-
 /*
 
-Copyright (C) 1992, 1993 John W. Eaton
+Copyright (C) 1992, 1993, 1994 John W. Eaton
 
 This file is part of Octave.
 
@@ -25,18 +25,22 @@
 #include "config.h"
 #endif
 
+#if defined (__GNUG__)
+#pragma implementation
+#endif
+
 #include "Objective.h"
 
 Objective::Objective (void)
 {
-  phi = (objective_fcn) NULL;
-  grad = (gradient_fcn) NULL;
+  phi = 0;
+  grad = 0;
 }
 
 Objective::Objective (const objective_fcn obj)
 {
   phi = obj;
-  grad = (gradient_fcn) NULL;
+  grad = 0;
 }
 
 Objective::Objective (const objective_fcn obj, const gradient_fcn g)