diff options
author | pixel <pixel> | 2007-07-01 22:43:11 +0000 |
---|---|---|
committer | pixel <pixel> | 2007-07-01 22:43:11 +0000 |
commit | a4cd8fbe2985510dbf3864eed32941e578350608 (patch) | |
tree | a45e9bebb3db724b2e0e48289c41356e71c57e9a /lib | |
parent | 51fcd480712723fc89e20bf2169981e74b565e23 (diff) |
Copy constructor of Regex should copy flags.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Regex.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Regex.cc b/lib/Regex.cc index a9b1983..9cc5c6c 100644 --- a/lib/Regex.cc +++ b/lib/Regex.cc @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -/* $Id: Regex.cc,v 1.15 2007-05-30 11:57:10 pixel Exp $ */ +/* $Id: Regex.cc,v 1.16 2007-07-01 22:43:11 pixel Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -40,7 +40,7 @@ Regex::Regex(const String & regex, int acflags, int aeflags) throw (GeneralExcep } } -Regex::Regex(const Regex & regex) : pattern(Base::strdup(regex.pattern)) { +Regex::Regex(const Regex & regex) : pattern(Base::strdup(regex.pattern)), cflags(regex.cflags), eflags(regex.eflags) { int r; if ((r = regcomp(&preg, pattern, cflags | REG_NOSUB))) { |