diff options
author | Nico Weber <thakis@chromium.org> | 2015-08-04 13:00:21 -0700 |
---|---|---|
committer | Nico Weber <thakis@chromium.org> | 2015-08-04 13:00:21 -0700 |
commit | 9d8ec5a6e37e8d1d4d4edca9040de234e2d4728f (patch) | |
tree | c97037f398d714665aefccb6eb54d0969ad7030c /xfa/src/fxbarcode/pdf417/BC_PDF417Codeword.cpp | |
parent | 780cee82236d1b3b0f9b01a22424e4b8ec9a6f12 (diff) | |
download | pdfium-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_PDF417Codeword.cpp')
-rw-r--r-- | xfa/src/fxbarcode/pdf417/BC_PDF417Codeword.cpp | 76 |
1 files changed, 33 insertions, 43 deletions
diff --git a/xfa/src/fxbarcode/pdf417/BC_PDF417Codeword.cpp b/xfa/src/fxbarcode/pdf417/BC_PDF417Codeword.cpp index 8449a7ed06..b4e61a3f8a 100644 --- a/xfa/src/fxbarcode/pdf417/BC_PDF417Codeword.cpp +++ b/xfa/src/fxbarcode/pdf417/BC_PDF417Codeword.cpp @@ -23,58 +23,48 @@ #include "../barcode.h"
#include "BC_PDF417Codeword.h"
int32_t CBC_Codeword::BARCODE_ROW_UNKNOWN = -1;
-CBC_Codeword::CBC_Codeword(int32_t startX, int32_t endX, int32_t bucket, int32_t cvalue)
-{
- m_startX = startX;
- m_endX = endX;
- m_bucket = bucket;
- m_value = cvalue;
- m_rowNumber = BARCODE_ROW_UNKNOWN;
+CBC_Codeword::CBC_Codeword(int32_t startX,
+ int32_t endX,
+ int32_t bucket,
+ int32_t cvalue) {
+ m_startX = startX;
+ m_endX = endX;
+ m_bucket = bucket;
+ m_value = cvalue;
+ m_rowNumber = BARCODE_ROW_UNKNOWN;
}
-CBC_Codeword::~CBC_Codeword()
-{
+CBC_Codeword::~CBC_Codeword() {}
+FX_BOOL CBC_Codeword::hasValidRowNumber() {
+ return isValidRowNumber(m_rowNumber);
}
-FX_BOOL CBC_Codeword::hasValidRowNumber()
-{
- return isValidRowNumber(m_rowNumber);
+FX_BOOL CBC_Codeword::isValidRowNumber(int32_t rowNumber) {
+ return m_rowNumber != BARCODE_ROW_UNKNOWN &&
+ m_bucket == (m_rowNumber % 3) * 3;
}
-FX_BOOL CBC_Codeword::isValidRowNumber(int32_t rowNumber)
-{
- return m_rowNumber != BARCODE_ROW_UNKNOWN && m_bucket == (m_rowNumber % 3) * 3;
+void CBC_Codeword::setRowNumberAsRowIndicatorColumn() {
+ m_rowNumber = (m_value / 30) * 3 + m_bucket / 3;
}
-void CBC_Codeword::setRowNumberAsRowIndicatorColumn()
-{
- m_rowNumber = (m_value / 30) * 3 + m_bucket / 3;
+int32_t CBC_Codeword::getWidth() {
+ return m_endX - m_startX;
}
-int32_t CBC_Codeword::getWidth()
-{
- return m_endX - m_startX;
+int32_t CBC_Codeword::getStartX() {
+ return m_startX;
}
-int32_t CBC_Codeword::getStartX()
-{
- return m_startX;
+int32_t CBC_Codeword::getEndX() {
+ return m_endX;
}
-int32_t CBC_Codeword::getEndX()
-{
- return m_endX;
+int32_t CBC_Codeword::getBucket() {
+ return m_bucket;
}
-int32_t CBC_Codeword::getBucket()
-{
- return m_bucket;
+int32_t CBC_Codeword::getValue() {
+ return m_value;
}
-int32_t CBC_Codeword::getValue()
-{
- return m_value;
+int32_t CBC_Codeword::getRowNumber() {
+ return m_rowNumber;
}
-int32_t CBC_Codeword::getRowNumber()
-{
- return m_rowNumber;
+void CBC_Codeword::setRowNumber(int32_t rowNumber) {
+ m_rowNumber = rowNumber;
}
-void CBC_Codeword::setRowNumber(int32_t rowNumber)
-{
- m_rowNumber = rowNumber;
-}
-CFX_ByteString CBC_Codeword::toString()
-{
- return m_rowNumber + (FX_CHAR)'|' + m_value;
+CFX_ByteString CBC_Codeword::toString() {
+ return m_rowNumber + (FX_CHAR)'|' + m_value;
}
|