changeset 1778:cb7512dadf2d

[project @ 1996-01-24 05:20:38 by jwe]
author jwe
date Wed, 24 Jan 1996 05:20:38 +0000
parents 85a825f7f8d6
children 6302d8d06319
files liboctave/file-ops.h
diffstat 1 files changed, 4 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/liboctave/file-ops.h	Tue Jan 23 08:32:26 1996 +0000
+++ b/liboctave/file-ops.h	Wed Jan 24 05:20:38 1996 +0000
@@ -38,16 +38,11 @@
 	  update_internal ();
       }
 
-  file_stat (const file_stat& f)
-    : file_name (f.file_name), follow_links (f.follow_links),
-      initialized (f.initialized) { }
+  file_stat (const file_stat& f) { copy (f); }
 
   file_stat& operator = (const file_stat& f)
     {
-      file_name  = f.file_name;
-      follow_links = f.follow_links;
-      initialized = f.initialized;
-
+      copy (f);
       return *this;
     }
 
@@ -185,6 +180,8 @@
 #endif
 
   void update_internal (bool force = false);
+
+  void copy (const file_stat&);
 };
 
 extern int is_newer (const string&, time_t);