r121: *** empty log message ***
[ctsim.git] / src / ifinfo.cpp
index f6c8da7f789f530d23fea79dfe02111aa119689d..bf730ad7d902f1581ec5329d6f6caf3e7e0d2d4a 100644 (file)
@@ -9,7 +9,7 @@
 **  This is part of the CTSim program
 **  Copyright (C) 1983-2000 Kevin Rosenberg
 **
-**  $Id: ifinfo.cpp,v 1.10 2000/06/25 17:32:24 kevin Exp $
+**  $Id: ifinfo.cpp,v 1.11 2000/06/26 21:15:24 kevin Exp $
 **
 **  This program is free software; you can redistribute it and/or modify
 **  it under the terms of the GNU General Public License (version 2) as
@@ -129,14 +129,14 @@ ifinfo_main (int argc, char *const argv[])
   
   in_file = argv[optind];
 
-  im = new ImageFile (in_file.c_str());
-  if (! im->fileRead ()) {
+  im = new ImageFile ();
+  if (! im->fileRead (in_file.c_str())) {
     sys_error (ERR_WARNING, "Unable to read file %s", in_file.c_str());
     return (1);
   }
   if (in2_file != "") {
-    im2 = new ImageFile(in2_file.c_str());
-    if (! im2->fileRead ()) {
+    im2 = new ImageFile();
+    if (! im2->fileRead (in2_file.c_str())) {
       sys_error (ERR_WARNING, "Unable to read file %s", in2_file.c_str());
       return (1);
     }