Mercurial > hg > octave-avbm
comparison liboctave/oct-shlib.h @ 11501:331fcc41ca23
data member initialization fixes
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 13 Jan 2011 03:04:51 -0500 |
parents | cbc402e64d83 |
children | fd0a3ac60b0e |
comparison
equal
deleted
inserted
replaced
11500:7aeb4eb7403f | 11501:331fcc41ca23 |
---|---|
41 class shlib_rep | 41 class shlib_rep |
42 { | 42 { |
43 public: | 43 public: |
44 | 44 |
45 shlib_rep (void) | 45 shlib_rep (void) |
46 : count (1), file (), tm_loaded (time_t ()) { } | 46 : count (1), file (), tm_loaded (time_t ()), fcn_names () { } |
47 | 47 |
48 protected: | 48 protected: |
49 | 49 |
50 shlib_rep (const std::string& f); | 50 shlib_rep (const std::string& f); |
51 | 51 |
119 if (--rep->count == 0) | 119 if (--rep->count == 0) |
120 delete rep; | 120 delete rep; |
121 } | 121 } |
122 | 122 |
123 octave_shlib (const octave_shlib& sl) | 123 octave_shlib (const octave_shlib& sl) |
124 : rep (sl.rep) | |
124 { | 125 { |
125 rep = sl.rep; | |
126 rep->count++; | 126 rep->count++; |
127 } | 127 } |
128 | 128 |
129 octave_shlib& operator = (const octave_shlib& sl) | 129 octave_shlib& operator = (const octave_shlib& sl) |
130 { | 130 { |