Add 'using zxing::Ref' in QRMode.cpp as it is essential of MSVC

This commit is contained in:
Nikos Ftylitakis 2020-02-12 12:36:04 +02:00
parent 82fcb99cf1
commit ee50acba1f
2 changed files with 3 additions and 2 deletions

View File

@ -53,7 +53,7 @@ public:
static Mode HANZI;
static Mode& forBits(int bits);
int getCharacterCountBits(Ref<Version>version) const;
int getCharacterCountBits(Ref<Version> version) const;
int getBits() const { return bits_; }
Mode& operator=(const Mode& other);

View File

@ -29,6 +29,7 @@ using std::ostringstream;
// VC++
using zxing::qrcode::Version;
using zxing::Ref;
Mode Mode::TERMINATOR(0, 0, 0, 0x00, "TERMINATOR");
Mode Mode::NUMERIC(10, 12, 14, 0x01, "NUMERIC");
@ -94,7 +95,7 @@ Mode& Mode::forBits(int bits) {
}
}
int Mode::getCharacterCountBits(Ref<Version>version) const
int Mode::getCharacterCountBits(Ref<Version> version) const
{
int number = version->getVersionNumber();
if (number <= 9) {