X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fstrings%2Fregex.h;h=bef5231e4b8a3cc3e1337da11ad682c94b9653db;hb=4ad05c650c55e3edccea887d15b26f41cdf60fb6;hp=094a295cdb77bc230dd0c79254a4459f1567d945;hpb=f24e7b96e76b63c9b9b8a6bce4c7a9db64276ea8;p=libs%2Fcore.git diff --git a/source/strings/regex.h b/source/strings/regex.h index 094a295..bef5231 100644 --- a/source/strings/regex.h +++ b/source/strings/regex.h @@ -11,7 +11,7 @@ class bad_regex: public std::logic_error { public: bad_regex(const std::string &, const std::string &, const std::string::const_iterator &); - virtual ~bad_regex() throw() { } + ~bad_regex() throw() override = default; private: std::string make_where(const std::string &, const std::string::const_iterator &); @@ -107,7 +107,7 @@ private: }; Code code; - unsigned n_groups; + unsigned n_groups = 0; public: /** Constructs a new Regex object from a string representation. */