From d901977064078efec335f3309c30bc8038372447 Mon Sep 17 00:00:00 2001 From: Andrew Grieve Date: Thu, 5 Sep 2013 11:11:37 -0400 Subject: [PATCH] Fix some compile warnings on iOS --- src/ios/zxing-all-in-one.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ios/zxing-all-in-one.cpp b/src/ios/zxing-all-in-one.cpp index 2958a34..2e6e5a5 100644 --- a/src/ios/zxing-all-in-one.cpp +++ b/src/ios/zxing-all-in-one.cpp @@ -1940,7 +1940,7 @@ GreyscaleLuminanceSource::GreyscaleLuminanceSource(unsigned char* greyData, int unsigned char* GreyscaleLuminanceSource::getRow(int y, unsigned char* row) { if (y < 0 || y >= this->getHeight()) { - throw IllegalArgumentException("Requested row is outside the image: " + y); + throw IllegalArgumentException("Requested row is outside the image."); } int width = getWidth(); // TODO(flyashi): determine if row has enough size. @@ -2017,7 +2017,7 @@ GreyscaleRotatedLuminanceSource::GreyscaleRotatedLuminanceSource(unsigned char* // The API asks for rows, but we're rotated, so we return columns. unsigned char* GreyscaleRotatedLuminanceSource::getRow(int y, unsigned char* row) { if (y < 0 || y >= getHeight()) { - throw IllegalArgumentException("Requested row is outside the image: " + y); + throw IllegalArgumentException("Requested row is outside the image"); } int width = getWidth(); if (row == NULL) { @@ -10309,7 +10309,7 @@ namespace { int secondThirdBytes = bits.readBits(16); return ((firstByte & 0x1F) << 16) | secondThirdBytes; } - throw IllegalArgumentException("Bad ECI bits starting with byte " + firstByte); + throw IllegalArgumentException("Bad ECI bits starting with byte "); } }