diff --git a/source/QZXing.pri b/source/QZXing.pri index f14a082..0df90b4 100644 --- a/source/QZXing.pri +++ b/source/QZXing.pri @@ -130,7 +130,8 @@ HEADERS += $$PWD/QZXing_global.h \ $$PWD/zxing/zxing/qrcode/encoder/MatrixUtil.h \ $$PWD/zxing/zxing/qrcode/encoder/QRCode.h \ $$PWD/zxing/zxing/WriterException.h \ - $$PWD/zxing/zxing/EncodeHint.h + $$PWD/zxing/zxing/EncodeHint.h \ + $$PWD/zxing/zxing/UnsupportedEncodingException.h SOURCES += $$PWD/CameraImageWrapper.cpp \ $$PWD/qzxing.cpp \ diff --git a/source/zxing/zxing/UnsupportedEncodingException.h b/source/zxing/zxing/UnsupportedEncodingException.h index c021a95..cde702e 100644 --- a/source/zxing/zxing/UnsupportedEncodingException.h +++ b/source/zxing/zxing/UnsupportedEncodingException.h @@ -1,10 +1,17 @@ #ifndef UNSUPPORTEDENCODINGEXCEPTION_H #define UNSUPPORTEDENCODINGEXCEPTION_H -class UnsupportedEncodingException : public zxing::Exception -{ -public: - UnsupportedEncodingException(); +#include + +namespace zxing { + +class UnsupportedEncodingException : public Exception { + public: + UnsupportedEncodingException() throw() {} + UnsupportedEncodingException(char const* msg) throw() : Exception(msg) {} + ~UnsupportedEncodingException() throw() {} }; +} + #endif // UNSUPPORTEDENCODINGEXCEPTION_H