summaryrefslogtreecommitdiff
path: root/xfa/fxbarcode/datamatrix/BC_EncoderContext.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'xfa/fxbarcode/datamatrix/BC_EncoderContext.cpp')
-rw-r--r--xfa/fxbarcode/datamatrix/BC_EncoderContext.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/xfa/fxbarcode/datamatrix/BC_EncoderContext.cpp b/xfa/fxbarcode/datamatrix/BC_EncoderContext.cpp
index c99dcb7d7a..6e395837d4 100644
--- a/xfa/fxbarcode/datamatrix/BC_EncoderContext.cpp
+++ b/xfa/fxbarcode/datamatrix/BC_EncoderContext.cpp
@@ -46,10 +46,10 @@ CBC_EncoderContext::CBC_EncoderContext(const CFX_WideString msg,
m_shape = FORCE_NONE;
m_newEncoding = -1;
m_pos = 0;
- m_symbolInfo = NULL;
+ m_symbolInfo = nullptr;
m_skipAtEnd = 0;
- m_maxSize = NULL;
- m_minSize = NULL;
+ m_maxSize = nullptr;
+ m_minSize = nullptr;
}
CBC_EncoderContext::~CBC_EncoderContext() {}
void CBC_EncoderContext::setSymbolShape(SymbolShapeHint shape) {
@@ -97,7 +97,7 @@ void CBC_EncoderContext::updateSymbolInfo(int32_t& e) {
updateSymbolInfo(getCodewordCount(), e);
}
void CBC_EncoderContext::updateSymbolInfo(int32_t len, int32_t& e) {
- if (m_symbolInfo == NULL || len > m_symbolInfo->m_dataCapacity) {
+ if (!m_symbolInfo || len > m_symbolInfo->m_dataCapacity) {
m_symbolInfo =
CBC_SymbolInfo::lookup(len, m_shape, m_minSize, m_maxSize, true, e);
BC_EXCEPTION_CHECK_ReturnVoid(e);