summaryrefslogtreecommitdiff
path: root/xfa/fxfa/cxfa_ffbarcode.cpp
diff options
context:
space:
mode:
authorRyan Harrison <rharrison@chromium.org>2018-01-04 14:43:27 -0500
committerChromium commit bot <commit-bot@chromium.org>2018-01-04 20:19:41 +0000
commitc560a8c11a6f8ee239e570db8c022ae0fd2a4db5 (patch)
tree0c16389f7e5c5e29c57a9c7f77dd062fa07d8640 /xfa/fxfa/cxfa_ffbarcode.cpp
parentdf0a749452d933e4f434e2a33112667f1880db34 (diff)
downloadpdfium-c560a8c11a6f8ee239e570db8c022ae0fd2a4db5.tar.xz
Convert usages of pdfium::Optional to Optional
Change-Id: I29769f78eaad10c6a8b79e27524336c4f330377e Reviewed-on: https://pdfium-review.googlesource.com/22258 Reviewed-by: Tom Sepez <tsepez@chromium.org> Reviewed-by: dsinclair <dsinclair@chromium.org> Commit-Queue: Ryan Harrison <rharrison@chromium.org>
Diffstat (limited to 'xfa/fxfa/cxfa_ffbarcode.cpp')
-rw-r--r--xfa/fxfa/cxfa_ffbarcode.cpp25
1 files changed, 12 insertions, 13 deletions
diff --git a/xfa/fxfa/cxfa_ffbarcode.cpp b/xfa/fxfa/cxfa_ffbarcode.cpp
index a7a66afa49..6aac5dd7f2 100644
--- a/xfa/fxfa/cxfa_ffbarcode.cpp
+++ b/xfa/fxfa/cxfa_ffbarcode.cpp
@@ -167,53 +167,52 @@ void CXFA_FFBarcode::UpdateWidgetProperty() {
pBarCodeWidget->SetType(pBarcodeInfo->eBCType);
CXFA_WidgetAcc* pAcc = GetDataAcc();
- pdfium::Optional<BC_CHAR_ENCODING> encoding =
+ Optional<BC_CHAR_ENCODING> encoding =
pAcc->GetBarcodeAttribute_CharEncoding();
if (encoding)
pBarCodeWidget->SetCharEncoding(*encoding);
- pdfium::Optional<bool> calcChecksum = pAcc->GetBarcodeAttribute_Checksum();
+ Optional<bool> calcChecksum = pAcc->GetBarcodeAttribute_Checksum();
if (calcChecksum)
pBarCodeWidget->SetCalChecksum(*calcChecksum);
- pdfium::Optional<int32_t> dataLen = pAcc->GetBarcodeAttribute_DataLength();
+ Optional<int32_t> dataLen = pAcc->GetBarcodeAttribute_DataLength();
if (dataLen)
pBarCodeWidget->SetDataLength(*dataLen);
- pdfium::Optional<char> startChar = pAcc->GetBarcodeAttribute_StartChar();
+ Optional<char> startChar = pAcc->GetBarcodeAttribute_StartChar();
if (startChar)
pBarCodeWidget->SetStartChar(*startChar);
- pdfium::Optional<char> endChar = pAcc->GetBarcodeAttribute_EndChar();
+ Optional<char> endChar = pAcc->GetBarcodeAttribute_EndChar();
if (endChar)
pBarCodeWidget->SetEndChar(*endChar);
- pdfium::Optional<int32_t> ecLevel = pAcc->GetBarcodeAttribute_ECLevel();
+ Optional<int32_t> ecLevel = pAcc->GetBarcodeAttribute_ECLevel();
if (ecLevel)
pBarCodeWidget->SetErrorCorrectionLevel(*ecLevel);
- pdfium::Optional<int32_t> width = pAcc->GetBarcodeAttribute_ModuleWidth();
+ Optional<int32_t> width = pAcc->GetBarcodeAttribute_ModuleWidth();
if (width)
pBarCodeWidget->SetModuleWidth(*width);
- pdfium::Optional<int32_t> height = pAcc->GetBarcodeAttribute_ModuleHeight();
+ Optional<int32_t> height = pAcc->GetBarcodeAttribute_ModuleHeight();
if (height)
pBarCodeWidget->SetModuleHeight(*height);
- pdfium::Optional<bool> printCheck = pAcc->GetBarcodeAttribute_PrintChecksum();
+ Optional<bool> printCheck = pAcc->GetBarcodeAttribute_PrintChecksum();
if (printCheck)
pBarCodeWidget->SetPrintChecksum(*printCheck);
- pdfium::Optional<BC_TEXT_LOC> textLoc =
- pAcc->GetBarcodeAttribute_TextLocation();
+ Optional<BC_TEXT_LOC> textLoc = pAcc->GetBarcodeAttribute_TextLocation();
if (textLoc)
pBarCodeWidget->SetTextLocation(*textLoc);
- pdfium::Optional<bool> truncate = pAcc->GetBarcodeAttribute_Truncate();
+ Optional<bool> truncate = pAcc->GetBarcodeAttribute_Truncate();
if (truncate)
pBarCodeWidget->SetTruncated(*truncate);
- pdfium::Optional<int8_t> ratio = pAcc->GetBarcodeAttribute_WideNarrowRatio();
+ Optional<int8_t> ratio = pAcc->GetBarcodeAttribute_WideNarrowRatio();
if (ratio)
pBarCodeWidget->SetWideNarrowRatio(*ratio);