summaryrefslogtreecommitdiff
path: root/core/fpdfdoc/cpdf_pagelabel.h
diff options
context:
space:
mode:
authorRyan Harrison <rharrison@chromium.org>2018-01-05 13:39:22 -0500
committerChromium commit bot <commit-bot@chromium.org>2018-01-05 18:49:58 +0000
commit8eeee77cbe0a2eb5729697767a3c503fc5570005 (patch)
treea54c03ab0c620567f840b3c92c8759c3c41f36d5 /core/fpdfdoc/cpdf_pagelabel.h
parent2c0ca7ddbc38e33cc692b2be02c32419b97927e0 (diff)
downloadpdfium-8eeee77cbe0a2eb5729697767a3c503fc5570005.tar.xz
Convert CPDF_PageLabel::GetLabel to return Optional<WideString>
Change-Id: I53b91aa89c0fd1e7ab766f6d3c27a0fc7573c360 Reviewed-on: https://pdfium-review.googlesource.com/22290 Commit-Queue: Ryan Harrison <rharrison@chromium.org> Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Diffstat (limited to 'core/fpdfdoc/cpdf_pagelabel.h')
-rw-r--r--core/fpdfdoc/cpdf_pagelabel.h3
1 files changed, 2 insertions, 1 deletions
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<WideString> GetLabel(int nPage) const;
int32_t GetPageByLabel(const ByteStringView& bsLabel) const;
int32_t GetPageByLabel(const WideStringView& wsLabel) const;