From 4eeccfba385d5404148c15e30314654cd15c10b7 Mon Sep 17 00:00:00 2001 From: favoritas37 Date: Sun, 14 Jun 2015 13:59:00 +0300 Subject: [PATCH] Completed port of UnsupportedEncodingException --- source/QZXing.pri | 3 ++- source/zxing/zxing/UnsupportedEncodingException.h | 15 +++++++++++---- 2 files changed, 13 insertions(+), 5 deletions(-) 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