From 8eeee77cbe0a2eb5729697767a3c503fc5570005 Mon Sep 17 00:00:00 2001 From: Ryan Harrison Date: Fri, 5 Jan 2018 13:39:22 -0500 Subject: Convert CPDF_PageLabel::GetLabel to return Optional Change-Id: I53b91aa89c0fd1e7ab766f6d3c27a0fc7573c360 Reviewed-on: https://pdfium-review.googlesource.com/22290 Commit-Queue: Ryan Harrison Reviewed-by: Henrique Nakashima --- core/fpdfdoc/cpdf_pagelabel.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'core/fpdfdoc/cpdf_pagelabel.h') diff --git a/core/fpdfdoc/cpdf_pagelabel.h b/core/fpdfdoc/cpdf_pagelabel.h index 8a7a33d16a..4570e97b7a 100644 --- a/core/fpdfdoc/cpdf_pagelabel.h +++ b/core/fpdfdoc/cpdf_pagelabel.h @@ -8,6 +8,7 @@ #define CORE_FPDFDOC_CPDF_PAGELABEL_H_ #include "core/fxcrt/fx_string.h" +#include "third_party/base/optional.h" class CPDF_Document; @@ -16,7 +17,7 @@ class CPDF_PageLabel { explicit CPDF_PageLabel(CPDF_Document* pDocument); ~CPDF_PageLabel(); - bool GetLabel(int nPage, WideString* wsLabel) const; + Optional GetLabel(int nPage) const; int32_t GetPageByLabel(const ByteStringView& bsLabel) const; int32_t GetPageByLabel(const WideStringView& wsLabel) const; -- cgit v1.2.3