diff options
Diffstat (limited to 'xfa/fxbarcode/qrcode/BC_FinderPatternInfo.cpp')
-rw-r--r-- | xfa/fxbarcode/qrcode/BC_FinderPatternInfo.cpp | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/xfa/fxbarcode/qrcode/BC_FinderPatternInfo.cpp b/xfa/fxbarcode/qrcode/BC_FinderPatternInfo.cpp index 25dc28b3f3..63b3ab790d 100644 --- a/xfa/fxbarcode/qrcode/BC_FinderPatternInfo.cpp +++ b/xfa/fxbarcode/qrcode/BC_FinderPatternInfo.cpp @@ -24,18 +24,23 @@ #include "xfa/fxbarcode/qrcode/BC_FinderPatternInfo.h" #include "xfa/fxbarcode/qrcode/BC_QRFinderPattern.h" -CBC_QRFinderPatternInfo::CBC_QRFinderPatternInfo(CFX_PtrArray* patternCenters) { - m_bottomLeft = (CBC_QRFinderPattern*)(*patternCenters)[0]; - m_topLeft = (CBC_QRFinderPattern*)(*patternCenters)[1]; - m_topRight = (CBC_QRFinderPattern*)(*patternCenters)[2]; +CBC_QRFinderPatternInfo::CBC_QRFinderPatternInfo( + CFX_ArrayTemplate<CBC_QRFinderPattern*>* patternCenters) { + m_bottomLeft = (*patternCenters)[0]; + m_topLeft = (*patternCenters)[1]; + m_topRight = (*patternCenters)[2]; } + CBC_QRFinderPatternInfo::~CBC_QRFinderPatternInfo() {} -CBC_QRFinderPattern* CBC_QRFinderPatternInfo::GetBottomLeft() { + +CBC_QRFinderPattern* CBC_QRFinderPatternInfo::GetBottomLeft() const { return m_bottomLeft; } -CBC_QRFinderPattern* CBC_QRFinderPatternInfo::GetTopLeft() { + +CBC_QRFinderPattern* CBC_QRFinderPatternInfo::GetTopLeft() const { return m_topLeft; } -CBC_QRFinderPattern* CBC_QRFinderPatternInfo::GetTopRight() { + +CBC_QRFinderPattern* CBC_QRFinderPatternInfo::GetTopRight() const { return m_topRight; } |