mirror of
https://github.com/status-im/qzxing.git
synced 2025-02-21 07:08:28 +00:00
fixed some warnings
This commit is contained in:
parent
702b45d4e2
commit
fad963c854
@ -151,7 +151,7 @@ Pair RSS14Reader::decodePair(Ref<BitArray> row, bool right, int rowNumber, Decod
|
||||
outside.getChecksumPortion() + 4 * inside.getChecksumPortion(),
|
||||
pattern);
|
||||
|
||||
} catch (NotFoundException ignored) {
|
||||
} catch (NotFoundException const& /*e*/) {
|
||||
return Pair();
|
||||
}
|
||||
}
|
||||
|
@ -87,7 +87,7 @@ Ref<Result> RSSExpandedReader::decodeRow(int rowNumber, Ref<BitArray> row, Decod
|
||||
m_startFromEven = false;
|
||||
try {
|
||||
return constructResult(decodeRow2pairs(rowNumber, row));
|
||||
} catch (NotFoundException e) {
|
||||
} catch (NotFoundException const& /*e*/) {
|
||||
// OK
|
||||
}
|
||||
|
||||
@ -108,7 +108,7 @@ std::vector<ExpandedPair> RSSExpandedReader::decodeRow2pairs(int rowNumber, Ref<
|
||||
while (!done) {
|
||||
try {
|
||||
m_pairs.push_back(retrieveNextPair(row, m_pairs, rowNumber));
|
||||
} catch (NotFoundException nfe) {
|
||||
} catch (NotFoundException const& nfe) {
|
||||
if (m_pairs.size() == 0) {
|
||||
throw nfe;
|
||||
}
|
||||
@ -158,7 +158,7 @@ std::vector<ExpandedPair> RSSExpandedReader::checkRows(bool reverse)
|
||||
std::vector<ExpandedPair> ps;
|
||||
try {
|
||||
ps = checkRows({}, 0);
|
||||
} catch (NotFoundException e) {
|
||||
} catch (NotFoundException const& /*e*/) {
|
||||
// OK
|
||||
}
|
||||
|
||||
@ -194,7 +194,7 @@ std::vector<ExpandedPair> RSSExpandedReader::checkRows(std::vector<ExpandedRow>
|
||||
try {
|
||||
// Recursion: try to add more rows
|
||||
return checkRows(rs, static_cast<int>(i + 1));
|
||||
} catch (NotFoundException e) {
|
||||
} catch (NotFoundException const& /*e*/) {
|
||||
// We failed, try the next candidate
|
||||
}
|
||||
}
|
||||
@ -417,7 +417,7 @@ ExpandedPair RSSExpandedReader::retrieveNextPair(Ref<BitArray> row, std::vector<
|
||||
DataCharacter rightChar;
|
||||
try {
|
||||
rightChar = decodeDataCharacter(row, pattern, isOddPattern, false);
|
||||
} catch (NotFoundException ignored) {
|
||||
} catch (NotFoundException const& /*e*/) {
|
||||
//rightChar = nullptr;
|
||||
}
|
||||
return ExpandedPair(leftChar, rightChar, pattern);
|
||||
@ -535,7 +535,7 @@ FinderPattern RSSExpandedReader::parseFoundFinderPattern(Ref<BitArray> row, int
|
||||
int value;
|
||||
try {
|
||||
value = parseFinderValue(counters, FINDER_PATTERNS);
|
||||
} catch (NotFoundException ignored) {
|
||||
} catch (NotFoundException const& /*e*/) {
|
||||
return FinderPattern();
|
||||
}
|
||||
return FinderPattern(value, {start, end}, start, end, rowNumber);
|
||||
|
@ -394,7 +394,7 @@ DecodedChar GeneralAppIdDecoder::decodeAlphanumeric(int pos)
|
||||
c = '/';
|
||||
break;
|
||||
default:
|
||||
throw new IllegalStateException("Decoding invalid alphanumeric value: " + sixBitValue);
|
||||
throw IllegalStateException("Decoding invalid alphanumeric value: " + sixBitValue);
|
||||
}
|
||||
return DecodedChar(pos + 6, c);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user