]> git.tdb.fi Git - libs/core.git/blobdiff - source/strings/regex.cpp
Use default member initializers and constructor delegation
[libs/core.git] / source / strings / regex.cpp
index c62405614525dd85b32a73361bd78133e03ef29f..915d33556f17cdd8d4f3a23c48e9a3f5b8343054 100644 (file)
@@ -56,7 +56,6 @@ string bad_regex::make_where(const string &e, const string::const_iterator &i)
 
 Regex::Regex(const string &expr)
 {
 
 Regex::Regex(const string &expr)
 {
-       n_groups = 0;
        auto iter = expr.begin();
        code = compile(expr, iter, n_groups, false);
        ++n_groups;
        auto iter = expr.begin();
        code = compile(expr, iter, n_groups, false);
        ++n_groups;