mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-26 04:12:34 +00:00
remove ResultPoint trait uses of Point
Point already has `x` and `y` properties, so accessing them with `getX()` and `getY()` is needlessly verbose. These calls have been removed, though the trait impl is still presen for the time being, since the OneDReader proc macro requires it.
This commit is contained in:
@@ -19,7 +19,7 @@ use std::rc::Rc;
|
||||
use crate::{
|
||||
common::{BitMatrix, DecoderRXingResult, Result},
|
||||
pdf417::pdf_417_common,
|
||||
Exceptions, Point, ResultPoint,
|
||||
Exceptions, Point,
|
||||
};
|
||||
|
||||
use super::{
|
||||
@@ -368,8 +368,8 @@ fn getRowIndicatorColumn<'a>(
|
||||
for i in 0..2 {
|
||||
// for (int i = 0; i < 2; i++) {
|
||||
let increment: i32 = if i == 0 { 1 } else { -1 };
|
||||
let mut startColumn: u32 = startPoint.getX() as u32;
|
||||
let mut imageRow: i32 = startPoint.getY() as i32;
|
||||
let mut startColumn: u32 = startPoint.x as u32;
|
||||
let mut imageRow: i32 = startPoint.y as i32;
|
||||
while imageRow <= boundingBox.getMaxY() as i32 && imageRow >= boundingBox.getMinY() as i32 {
|
||||
// for (int imageRow = (int) startPoint.getY(); imageRow <= boundingBox.getMaxY() &&
|
||||
// imageRow >= boundingBox.getMinY(); imageRow += increment) {
|
||||
|
||||
Reference in New Issue
Block a user