summaryrefslogtreecommitdiff
path: root/xfa/src/fxbarcode/qrcode/BC_QRCoderECBlocks.cpp
diff options
context:
space:
mode:
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;
}