summaryrefslogtreecommitdiff
path: root/xfa/src/fxbarcode/pdf417/BC_PDF417BarcodeRow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'xfa/src/fxbarcode/pdf417/BC_PDF417BarcodeRow.cpp')
-rw-r--r--xfa/src/fxbarcode/pdf417/BC_PDF417BarcodeRow.cpp51
1 files changed, 22 insertions, 29 deletions
diff --git a/xfa/src/fxbarcode/pdf417/BC_PDF417BarcodeRow.cpp b/xfa/src/fxbarcode/pdf417/BC_PDF417BarcodeRow.cpp
index 8918d32600..82e5834c55 100644
--- a/xfa/src/fxbarcode/pdf417/BC_PDF417BarcodeRow.cpp
+++ b/xfa/src/fxbarcode/pdf417/BC_PDF417BarcodeRow.cpp
@@ -22,39 +22,32 @@
#include "../barcode.h"
#include "BC_PDF417BarcodeRow.h"
-CBC_BarcodeRow::CBC_BarcodeRow(int32_t width)
-{
- m_row.SetSize(width);
- m_currentLocation = 0;
+CBC_BarcodeRow::CBC_BarcodeRow(int32_t width) {
+ m_row.SetSize(width);
+ m_currentLocation = 0;
}
-CBC_BarcodeRow::~CBC_BarcodeRow()
-{
- m_output.RemoveAll();
- m_row.RemoveAll();
+CBC_BarcodeRow::~CBC_BarcodeRow() {
+ m_output.RemoveAll();
+ m_row.RemoveAll();
}
-void CBC_BarcodeRow::set(int32_t x, uint8_t value)
-{
- m_row.SetAt(x, value);
+void CBC_BarcodeRow::set(int32_t x, uint8_t value) {
+ m_row.SetAt(x, value);
}
-void CBC_BarcodeRow::set(int32_t x, FX_BOOL black)
-{
- m_row.SetAt(x, (uint8_t) (black ? 1 : 0));
+void CBC_BarcodeRow::set(int32_t x, FX_BOOL black) {
+ m_row.SetAt(x, (uint8_t)(black ? 1 : 0));
}
-void CBC_BarcodeRow::addBar(FX_BOOL black, int32_t width)
-{
- for (int32_t ii = 0; ii < width; ii++) {
- set(m_currentLocation++, black);
- }
+void CBC_BarcodeRow::addBar(FX_BOOL black, int32_t width) {
+ for (int32_t ii = 0; ii < width; ii++) {
+ set(m_currentLocation++, black);
+ }
}
-CFX_ByteArray& CBC_BarcodeRow::getRow()
-{
- return m_row;
+CFX_ByteArray& CBC_BarcodeRow::getRow() {
+ return m_row;
}
-CFX_ByteArray& CBC_BarcodeRow::getScaledRow(int32_t scale)
-{
- m_output.SetSize(m_row.GetSize() * scale);
- for (int32_t i = 0; i < m_output.GetSize(); i++) {
- m_output[i] = (m_row[i / scale]);
- }
- return m_output;
+CFX_ByteArray& CBC_BarcodeRow::getScaledRow(int32_t scale) {
+ m_output.SetSize(m_row.GetSize() * scale);
+ for (int32_t i = 0; i < m_output.GetSize(); i++) {
+ m_output[i] = (m_row[i / scale]);
+ }
+ return m_output;
}