diff --git a/core/src/ZXingC.cpp b/core/src/ZXingC.cpp index d807e39439..89cc393dbd 100644 --- a/core/src/ZXingC.cpp +++ b/core/src/ZXingC.cpp @@ -216,10 +216,10 @@ uint8_t* ZXing_Barcode_bytesECI(const ZXing_Barcode* barcode, int* len) } #define ZX_GETTER(TYPE, GETTER, TRANS) \ - TYPE ZXing_Barcode_##GETTER(const ZXing_Barcode* barcode) { return static_cast(TRANS(barcode->GETTER())); } + TYPE ZXing_Barcode_##GETTER(const ZXing_Barcode* barcode) { return TRANS(barcode->GETTER()); } -ZX_GETTER(ZXing_BarcodeFormat, format,) -ZX_GETTER(ZXing_ContentType, contentType,) +ZX_GETTER(ZXing_BarcodeFormat, format, static_cast) +ZX_GETTER(ZXing_ContentType, contentType, static_cast) ZX_GETTER(char*, text, copy) ZX_GETTER(char*, ecLevel, copy) ZX_GETTER(char*, symbologyIdentifier, copy)