12 Commits

Author SHA1 Message Date
Benjamin Dobell
bc1f054246 Remove commented out code 2015-05-26 13:22:29 +10:00
渡世白玉
c4fd6e223c change cstdlib abs to cmath abs(float). in mingw 4.9.1 abs(in castlib) is erro 2015-05-26 10:48:23 +08:00
SebGDev
5785b6d76f compatibility for c++ standard version less than 11
Signed-off-by: SebGDev <Sebastian_Goebel@gmx.net>
2015-05-11 13:51:20 +02:00
SebGDev
03c3fa63d1 Fixed memory leak
Old zxing issue:
https://code.google.com/p/zxing/issues/detail?id=1796

This is really strange, because GenericGF has a GenericGFPoly reference and
GenericGFPoly has a GenericGF reference the zxing:Ref "garbage collection" is
not working properly.
The bugfix replaced GenericGF zxing:Ref in GenericGFPoly with a normal reference.
The same trick is used at ModulusPoly.h (pdf417\decoder\ec).
2015-02-10 17:29:00 +01:00
SebGDev
103489879a Fixed memory leak
Old zxing issue 1795:
https://code.google.com/p/zxing/issues/detail?id=1795
2015-02-10 17:18:53 +01:00
SebGDev
49db77659e Microsoft visual studio compiler 2012 compatibility
http://blogs.msdn.com/b/vcblog/archive/2013/06/28/c-11-14-stl-features-fixes-and-breaking-changes-in-vs-2013.aspx
--> You must #include <algorithm> when calling std::min() or std::max()
2015-02-10 17:09:47 +01:00
SebGDev
f082e12bc5 Remove of unnecessary bytes array 2015-01-21 10:47:47 +01:00
SebGDev
f44fe7b6d2 Memory leak 2015-01-20 15:03:04 +01:00
SebGDev
975b67b248 Bugfix UPCAReader: The maybeReturnResult function checks whether the Result
is UPCA or EAN13. The old version returned an uninitialised Ref<Result>
(at the EAN13 case) which let MultiFormatUPCEANReader::decodeRow (line 90)
crash because a Result is assumed.

The bugfix is technically oriented at the java version.

Note: This error doesn't appear at normal tests because the MultiFormatUPCEANReader
uses the EAN13 reader for UPC-A detection. The UPCAReader is only used if
DecodeHints BarcodeFormat::UPC_A ist set.
2015-01-20 14:28:17 +01:00
SebGDev
9cba60be8f bugfix: qrcode, fixed several memory leaks (cleanup before throw) 2015-01-20 13:05:45 +01:00
Benjamin Dobell
e4d48e0da3 Fixed incorrect header guard macro definition 2014-12-16 21:26:45 +11:00
Benjamin Dobell
b80a24cc6e Initial commit 2014-12-16 20:25:55 +11:00