Commit 3fae1fc4 authored by Tomaz  Canabrava's avatar Tomaz Canabrava Committed by Tomaz Canabrava
Browse files

Do not depend on c++17

parent ca783c1a
......@@ -327,11 +327,16 @@ void RegExpFilter::process()
QRegularExpressionMatchIterator iterator(_searchText.globalMatch(*text));
while (iterator.hasNext()) {
QRegularExpressionMatch match(;
auto [startLine, startColumn] = getLineColumn(match.capturedStart());
auto [endLine, endColumn] = getLineColumn(match.capturedEnd());
std::pair<int, int> start = getLineColumn(match.capturedStart());
std::pair<int, int> end = getLineColumn(match.capturedEnd());
QSharedPointer<Filter::HotSpot> spot(
newHotSpot(start.first, start.second,
end.first, end.second,
QSharedPointer<Filter::HotSpot> spot(newHotSpot(startLine, startColumn,
endLine, endColumn, match.capturedTexts()));
if (spot == nullptr) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment