diff --git a/src/zxing/zxing/oned/rss/RSS14Reader.cpp b/src/zxing/zxing/oned/rss/RSS14Reader.cpp index b08f289..14562c6 100644 --- a/src/zxing/zxing/oned/rss/RSS14Reader.cpp +++ b/src/zxing/zxing/oned/rss/RSS14Reader.cpp @@ -151,7 +151,7 @@ Pair RSS14Reader::decodePair(Ref row, bool right, int rowNumber, Decod outside.getChecksumPortion() + 4 * inside.getChecksumPortion(), pattern); - } catch (NotFoundException ignored) { + } catch (NotFoundException const& /*e*/) { return Pair(); } } diff --git a/src/zxing/zxing/oned/rss/expanded/RSSExpandedReader.cpp b/src/zxing/zxing/oned/rss/expanded/RSSExpandedReader.cpp index fe1acbd..5d190a2 100644 --- a/src/zxing/zxing/oned/rss/expanded/RSSExpandedReader.cpp +++ b/src/zxing/zxing/oned/rss/expanded/RSSExpandedReader.cpp @@ -87,7 +87,7 @@ Ref RSSExpandedReader::decodeRow(int rowNumber, Ref 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 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 RSSExpandedReader::checkRows(bool reverse) std::vector ps; try { ps = checkRows({}, 0); - } catch (NotFoundException e) { + } catch (NotFoundException const& /*e*/) { // OK } @@ -194,7 +194,7 @@ std::vector RSSExpandedReader::checkRows(std::vector try { // Recursion: try to add more rows return checkRows(rs, static_cast(i + 1)); - } catch (NotFoundException e) { + } catch (NotFoundException const& /*e*/) { // We failed, try the next candidate } } @@ -417,7 +417,7 @@ ExpandedPair RSSExpandedReader::retrieveNextPair(Ref 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 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); diff --git a/src/zxing/zxing/oned/rss/expanded/decoders/GeneralAppIdDecoder.cpp b/src/zxing/zxing/oned/rss/expanded/decoders/GeneralAppIdDecoder.cpp index e2d6750..a4cce47 100644 --- a/src/zxing/zxing/oned/rss/expanded/decoders/GeneralAppIdDecoder.cpp +++ b/src/zxing/zxing/oned/rss/expanded/decoders/GeneralAppIdDecoder.cpp @@ -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); }