reultpoints fix

This commit is contained in:
Eism 2019-07-18 14:10:06 +02:00
parent 10b4dbbb51
commit dcb75f7210
2 changed files with 7 additions and 2 deletions

View File

@ -10,7 +10,7 @@ FinderPattern::FinderPattern(int value, std::vector<int> startEnd, int start, in
{
ArrayRef< Ref<ResultPoint> > resultPoints(2);
resultPoints[0] = Ref<ResultPoint>(new OneDResultPoint(start, rowNumber));
resultPoints[0] = Ref<ResultPoint>(new OneDResultPoint(end, rowNumber));
resultPoints[1] = Ref<ResultPoint>(new OneDResultPoint(end, rowNumber));
m_resultPoints = resultPoints;
}

View File

@ -110,7 +110,12 @@ Ref<Result> RSS14Reader::constructResult(Pair leftPair, Pair rightPair) const
ArrayRef< Ref<ResultPoint> > leftPoints = leftPair.getFinderPattern().getResultPoints();
ArrayRef< Ref<ResultPoint> > rightPoints = rightPair.getFinderPattern().getResultPoints();
ArrayRef< Ref<ResultPoint> > resultPoints(5);
ArrayRef< Ref<ResultPoint> > resultPoints(4);
resultPoints[0] = leftPoints[0];
resultPoints[1] = leftPoints[1];
resultPoints[2] = rightPoints[0];
resultPoints[3] = rightPoints[1];
return Ref<Result>(new Result(
Ref<String>(new String(buffer)),