summaryrefslogtreecommitdiff
path: root/xfa/src/fxbarcode/qrcode/BC_QRCoderECBlocks.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/qrcode/BC_QRCoderECBlocks.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/qrcode/BC_QRCoderECBlocks.cpp')
-rw-r--r--xfa/src/fxbarcode/qrcode/BC_QRCoderECBlocks.cpp58
1 files changed, 26 insertions, 32 deletions
diff --git a/xfa/src/fxbarcode/qrcode/BC_QRCoderECBlocks.cpp b/xfa/src/fxbarcode/qrcode/BC_QRCoderECBlocks.cpp
index 3c40cfd34b..8489106d82 100644
--- a/xfa/src/fxbarcode/qrcode/BC_QRCoderECBlocks.cpp
+++ b/xfa/src/fxbarcode/qrcode/BC_QRCoderECBlocks.cpp
@@ -23,43 +23,37 @@
#include "../barcode.h"
#include "BC_QRCoderECB.h"
#include "BC_QRCoderECBlocks.h"
-CBC_QRCoderECBlocks::CBC_QRCoderECBlocks(int32_t ecCodeWordsPerBlock, CBC_QRCoderECB* ecBlocks)
-{
- m_ecCodeWordsPerBlock = ecCodeWordsPerBlock;
- m_ecBlocks.Add(ecBlocks);
+CBC_QRCoderECBlocks::CBC_QRCoderECBlocks(int32_t ecCodeWordsPerBlock,
+ CBC_QRCoderECB* ecBlocks) {
+ m_ecCodeWordsPerBlock = ecCodeWordsPerBlock;
+ m_ecBlocks.Add(ecBlocks);
}
CBC_QRCoderECBlocks::CBC_QRCoderECBlocks(int32_t ecCodeWordsPerBlock,
- CBC_QRCoderECB* ecBlocks1,
- CBC_QRCoderECB* ecBlocks2)
-{
- m_ecCodeWordsPerBlock = ecCodeWordsPerBlock;
- m_ecBlocks.Add(ecBlocks1);
- m_ecBlocks.Add(ecBlocks2);
+ CBC_QRCoderECB* ecBlocks1,
+ CBC_QRCoderECB* ecBlocks2) {
+ m_ecCodeWordsPerBlock = ecCodeWordsPerBlock;
+ m_ecBlocks.Add(ecBlocks1);
+ m_ecBlocks.Add(ecBlocks2);
}
-CBC_QRCoderECBlocks::~CBC_QRCoderECBlocks()
-{
- for (int32_t i = 0 ; i < m_ecBlocks.GetSize(); i++) {
- delete ( (CBC_QRCoderECB*)(m_ecBlocks[i]) ) ;
- }
- m_ecBlocks.RemoveAll();
+CBC_QRCoderECBlocks::~CBC_QRCoderECBlocks() {
+ for (int32_t i = 0; i < m_ecBlocks.GetSize(); i++) {
+ delete ((CBC_QRCoderECB*)(m_ecBlocks[i]));
+ }
+ m_ecBlocks.RemoveAll();
}
-int32_t CBC_QRCoderECBlocks::GetECCodeWordsPerBlock()
-{
- return m_ecCodeWordsPerBlock;
+int32_t CBC_QRCoderECBlocks::GetECCodeWordsPerBlock() {
+ return m_ecCodeWordsPerBlock;
}
-int32_t CBC_QRCoderECBlocks::GetNumBlocks()
-{
- int32_t total = 0;
- for(int32_t i = 0; i < m_ecBlocks.GetSize(); i++) {
- total += ( (CBC_QRCoderECB*)(m_ecBlocks[i]) )->GetCount();
- }
- return total;
+int32_t CBC_QRCoderECBlocks::GetNumBlocks() {
+ int32_t total = 0;
+ for (int32_t i = 0; i < m_ecBlocks.GetSize(); i++) {
+ total += ((CBC_QRCoderECB*)(m_ecBlocks[i]))->GetCount();
+ }
+ return total;
}
-int32_t CBC_QRCoderECBlocks::GetTotalECCodeWords()
-{
- return m_ecCodeWordsPerBlock * GetNumBlocks();
+int32_t CBC_QRCoderECBlocks::GetTotalECCodeWords() {
+ return m_ecCodeWordsPerBlock * GetNumBlocks();
}
-CFX_PtrArray* CBC_QRCoderECBlocks::GetECBlocks()
-{
- return &m_ecBlocks;
+CFX_PtrArray* CBC_QRCoderECBlocks::GetECBlocks() {
+ return &m_ecBlocks;
}