summaryrefslogtreecommitdiff
path: root/xfa/src/fxbarcode/pdf417/BC_PDF417BarcodeRow.cpp
diff options
context:
space:
mode:
authorNico Weber <thakis@chromium.org>2015-08-04 13:00:21 -0700
committerNico Weber <thakis@chromium.org>2015-08-04 13:00:21 -0700
commit9d8ec5a6e37e8d1d4d4edca9040de234e2d4728f (patch)
treec97037f398d714665aefccb6eb54d0969ad7030c /xfa/src/fxbarcode/pdf417/BC_PDF417BarcodeRow.cpp
parent780cee82236d1b3b0f9b01a22424e4b8ec9a6f12 (diff)
downloadpdfium-9d8ec5a6e37e8d1d4d4edca9040de234e2d4728f.tar.xz
XFA: clang-format all pdfium code.
No behavior change. Generated by: find . -name '*.cpp' -o -name '*.h' | \ grep -E -v 'third_party|thirdparties|lpng_v163|tiff_v403' | \ xargs ../../buildtools/mac/clang-format -i Then manually merged https://codereview.chromium.org/1269223002/ See thread "tabs vs spaces" on pdfium@googlegroups.com for discussion. BUG=none
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;
}