mirror of https://github.com/status-im/qzxing.git
Add 'using zxing::Ref' in QRMode.cpp as it is essential of MSVC
This commit is contained in:
parent
82fcb99cf1
commit
ee50acba1f
|
@ -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);
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue