diff --git a/modules/wechat_qrcode/src/zxing/qrcode/detector/detector.cpp b/modules/wechat_qrcode/src/zxing/qrcode/detector/detector.cpp index e22a852f9..40c1f5726 100644 --- a/modules/wechat_qrcode/src/zxing/qrcode/detector/detector.cpp +++ b/modules/wechat_qrcode/src/zxing/qrcode/detector/detector.cpp @@ -117,7 +117,7 @@ Ref Detector::getResultViaAlignment(int patternIdx, int alignmen Ref bits(sampleGrid(image_, possibleDimension, transform, err_handler)); if (err_handler.ErrCode()) return Ref(); - ArrayRef > corrners(new Array >(4)); + ArrayRef > corners(new Array >(4)); vector points(8, 0.0f); points[0] = 0.0f; points[1] = possibleDimension; // bottomLeft @@ -128,12 +128,12 @@ Ref Detector::getResultViaAlignment(int patternIdx, int alignmen points[6] = possibleDimension; points[7] = possibleDimension; // bottomRight transform->transformPoints(points); - corrners[0].reset(Ref(new FinderPattern(points[0], points[1], 0))); - corrners[1].reset(Ref(new FinderPattern(points[2], points[3], 0))); - corrners[2].reset(Ref(new FinderPattern(points[4], points[5], 0))); - corrners[3].reset(Ref(new FinderPattern(points[6], points[7], 0))); + corners[0].reset(Ref(new FinderPattern(points[0], points[1], 0))); + corners[1].reset(Ref(new FinderPattern(points[2], points[3], 0))); + corners[2].reset(Ref(new FinderPattern(points[4], points[5], 0))); + corners[3].reset(Ref(new FinderPattern(points[6], points[7], 0))); - Ref result(new DetectorResult(bits, corrners, possibleDimension)); + Ref result(new DetectorResult(bits, corners, possibleDimension)); return result; }