X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fregmatch.cpp;h=f81be1a5225b09886579df8a92582078609b2a61;hp=852174a0a152baa42ffaaea4ebf724eb7aacb452;hb=5b1368cb791cab043f0435628cacbaff36e39b7b;hpb=36f9e78ae75f5e14b132f37d249340ad3480b8ce diff --git a/source/regmatch.cpp b/source/regmatch.cpp index 852174a..f81be1a 100644 --- a/source/regmatch.cpp +++ b/source/regmatch.cpp @@ -4,6 +4,7 @@ This file is part of libmspstrings Copyright © 2007 Mikko Rasa Distributed under the LGPL */ + #include #include "regmatch.h" @@ -17,8 +18,8 @@ RegMatch::RegMatch(const string &str, const GroupArray &g): for(GroupArray::iterator i=groups.begin(); i!=groups.end(); ++i) if(i->match) { - i->length=i->end-i->begin; - i->str=str.substr(i->begin, i->length); + i->length = i->end-i->begin; + i->str = str.substr(i->begin, i->length); } }