X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fstrings%2Fregmatch.h;fp=source%2Fstrings%2Fregmatch.h;h=0858e5a8dfc5cec44afba0d308ca45ef3c8d3206;hp=b79104bad530f9f6846791e97cda7771f9252d37;hb=122846f0881673770d88eff7d925ecf25c01b62e;hpb=b116e161e377da0e4e52f07745ecb2d22f962ae9 diff --git a/source/strings/regmatch.h b/source/strings/regmatch.h index b79104b..0858e5a 100644 --- a/source/strings/regmatch.h +++ b/source/strings/regmatch.h @@ -26,13 +26,12 @@ public: { typedef std::string::size_type size_type; - bool match; //< Whether or not this group matched - size_type begin; //< First offset of the match - size_type end; //< One-past-last offset - size_type length; //< Length of the match (end-begin) - std::string str; //< The part of the string that matched + bool match = false; //< Whether or not this group matched + size_type begin; //< First offset of the match + size_type end; //< One-past-last offset + size_type length; //< Length of the match (end-begin) + std::string str; //< The part of the string that matched - Group(): match(false) { } operator bool() const { return match; } };