diff src/ov-fcn-handle.h @ 11584:cda4aa780d58

Another round of initialising members in the constructor initialisation list
author Pascal Dupuis <Pascal.Dupuis@uclouvain.be>
date Thu, 20 Jan 2011 17:07:26 -0500
parents fd0a3ac60b0e
children 12df7854fa7c
line wrap: on
line diff
--- a/src/ov-fcn-handle.h
+++ b/src/ov-fcn-handle.h
@@ -50,16 +50,16 @@
   static const std::string anonymous;
 
   octave_fcn_handle (void)
-    : fcn (), nm (), has_overloads (false) { }
+    : fcn (), nm (), has_overloads (false), overloads () { }
 
   octave_fcn_handle (const std::string& n)
-    : fcn (), nm (n), has_overloads (false) { }
+    : fcn (), nm (n), has_overloads (false), overloads () { }
 
   octave_fcn_handle (const octave_value& f,  const std::string& n = anonymous);
 
   octave_fcn_handle (const octave_fcn_handle& fh)
     : octave_base_value (fh), fcn (fh.fcn), nm (fh.nm),
-    has_overloads (fh.has_overloads)
+    has_overloads (fh.has_overloads), overloads ()
    {
      for (int i = 0; i < btyp_num_types; i++)
        builtin_overloads[i] = fh.builtin_overloads[i];