]> git.tdb.fi Git - libs/core.git/blobdiff - source/strings/regex.h
Use default member initializers and constructor delegation
[libs/core.git] / source / strings / regex.h
index 094a295cdb77bc230dd0c79254a4459f1567d945..e830c5bbda253cb111e7e3e07199707c8b884e73 100644 (file)
@@ -107,7 +107,7 @@ private:
        };
 
        Code code;
        };
 
        Code code;
-       unsigned n_groups;
+       unsigned n_groups = 0;
 
 public:
        /** Constructs a new Regex object from a string representation. */
 
 public:
        /** Constructs a new Regex object from a string representation. */