Tweaked QrCode constructor to dispose of the isFunction array in all languages except C, but somewhat differently in each language.

This commit is contained in:
Project Nayuki
2018-08-26 02:17:47 +00:00
parent c86dacacb7
commit ccd571624e
6 changed files with 8 additions and 0 deletions
+2
View File
@@ -129,6 +129,8 @@ QrCode::QrCode(int ver, Ecc ecl, const vector<uint8_t> &dataCodewords, int mask)
const vector<uint8_t> allCodewords = addEccAndInterleave(dataCodewords);
drawCodewords(allCodewords);
this->mask = handleConstructorMasking(mask);
isFunction.clear();
isFunction.shrink_to_fit();
}