diff options
Diffstat (limited to 'fxbarcode/pdf417/BC_PDF417HighLevelEncoder.cpp')
-rw-r--r-- | fxbarcode/pdf417/BC_PDF417HighLevelEncoder.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/fxbarcode/pdf417/BC_PDF417HighLevelEncoder.cpp b/fxbarcode/pdf417/BC_PDF417HighLevelEncoder.cpp index ac8b0186f6..f65cfe46ae 100644 --- a/fxbarcode/pdf417/BC_PDF417HighLevelEncoder.cpp +++ b/fxbarcode/pdf417/BC_PDF417HighLevelEncoder.cpp @@ -71,10 +71,7 @@ CFX_WideString CBC_PDF417HighLevelEncoder::encodeHighLevel( } msg += ch; } - std::vector<uint8_t> byteArr; - for (int32_t k = 0; k < bytes.GetLength(); k++) { - byteArr.push_back(bytes.GetAt(k)); - } + std::vector<uint8_t> byteArr(bytes.begin(), bytes.end()); CFX_WideString sb; len = msg.GetLength(); int32_t p = 0; |