Updated C++ QrSegment class to accept and store std::vector<bool> instead of BitBuffer.

pull/16/head
Project Nayuki 8 years ago
parent 573c5bba9d
commit 5279a4c88b

@ -144,7 +144,7 @@ QrSegment QrSegment::makeEci(long assignVal) {
} }
QrSegment::QrSegment(const Mode &md, int numCh, const BitBuffer &dt) : QrSegment::QrSegment(const Mode &md, int numCh, const std::vector<bool> &dt) :
mode(md), mode(md),
numChars(numCh), numChars(numCh),
data(dt) { data(dt) {

@ -138,7 +138,7 @@ class QrSegment final {
public: const int numChars; public: const int numChars;
/* The data bits of this segment. */ /* The data bits of this segment. */
public: const BitBuffer data; public: const std::vector<bool> data;
/*---- Constructor ----*/ /*---- Constructor ----*/
@ -146,7 +146,7 @@ class QrSegment final {
/* /*
* Creates a new QR Code data segment with the given parameters and data. * Creates a new QR Code data segment with the given parameters and data.
*/ */
public: QrSegment(const Mode &md, int numCh, const BitBuffer &dt); public: QrSegment(const Mode &md, int numCh, const std::vector<bool> &dt);
// Package-private helper function. // Package-private helper function.

Loading…
Cancel
Save