mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-27 12:52:34 +00:00
convert most variable swaps to mem swaps
This commit is contained in:
@@ -840,9 +840,8 @@ impl RSSExpandedReader {
|
||||
let mut j = counters.len() - 1;
|
||||
while i < j {
|
||||
// for (int i = 0, j = counters.length - 1; i < j; i++, j--) {
|
||||
let temp = counters[i];
|
||||
counters[i] = counters[j];
|
||||
counters[j] = temp;
|
||||
|
||||
counters.swap(i, j);
|
||||
|
||||
i += 1;
|
||||
j -= 1;
|
||||
|
||||
@@ -307,9 +307,8 @@ impl RSS14Reader {
|
||||
let mut j = counters.len() - 1;
|
||||
while i < j {
|
||||
// for (int i = 0, j = counters.length - 1; i < j; i++, j--) {
|
||||
let temp = counters[i];
|
||||
counters[i] = counters[j];
|
||||
counters[j] = temp;
|
||||
|
||||
counters.swap(i,j);
|
||||
|
||||
i += 1;
|
||||
j -= 1;
|
||||
|
||||
Reference in New Issue
Block a user