Mercurial > hg > octave-nkf
diff liboctave/regex-match.h @ 11501:331fcc41ca23
data member initialization fixes
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 13 Jan 2011 03:04:51 -0500 |
parents | 0522a65bcd56 |
children | fd0a3ac60b0e |
line wrap: on
line diff
--- a/liboctave/regex-match.h +++ b/liboctave/regex-match.h @@ -43,13 +43,31 @@ public: regex_match (const std::string& p, bool insen = false) - : pat (p), case_insen (insen) { init (); } + : pat (p), case_insen (insen) +#if HAVE_REGEX + , compiled (0) +#endif + { + init (); + } regex_match (const string_vector& p = string_vector (), bool insen = false) - : pat (p), case_insen (insen) { init (); } + : pat (p), case_insen (insen) +#if HAVE_REGEX + , compiled (0) +#endif + { + init (); + } regex_match (const regex_match& gm) - : pat (gm.pat), case_insen (gm.case_insen) { init (); } + : pat (gm.pat), case_insen (gm.case_insen) +#if HAVE_REGEX + , compiled (0) +#endif + { + init (); + } regex_match& operator = (const regex_match& gm); @@ -76,7 +94,6 @@ #if HAVE_REGEX regex_t *compiled; #endif - }; #endif