summaryrefslogtreecommitdiff
path: root/core/fpdfdoc
diff options
context:
space:
mode:
authorHans Wennborg <hans@chromium.org>2018-10-22 19:17:02 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-10-22 19:17:02 +0000
commit2f62d36bfac781428f3896b443177e033be4c554 (patch)
tree4e77be5f0da1335ae54adfe7d62a7200cd134bbb /core/fpdfdoc
parentc320e9c7ad01ab48625e51fb3b6476d98b6167de (diff)
downloadpdfium-2f62d36bfac781428f3896b443177e033be4c554.tar.xz
Rename CPDF_Object::Type enumerators with k prefixes
This was originally motivated by Clang's newly enhanced -Wshadow warning, which complained about BOOLEAN shadowing a BOOLEAN typedef in winnt.h. The warning has since been changed to not fire on enums shadowing types, but it was suggested that this kind of naming change was desirable anyway. Bug: chromium:895475 Change-Id: I278ce9dbbd88f802fe5bc77fca28b082aa5e684d Reviewed-on: https://pdfium-review.googlesource.com/c/44330 Commit-Queue: Tom Sepez <tsepez@chromium.org> Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'core/fpdfdoc')
-rw-r--r--core/fpdfdoc/cpdf_formfield.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/fpdfdoc/cpdf_formfield.cpp b/core/fpdfdoc/cpdf_formfield.cpp
index 89030b4132..61cdf4c4a1 100644
--- a/core/fpdfdoc/cpdf_formfield.cpp
+++ b/core/fpdfdoc/cpdf_formfield.cpp
@@ -337,10 +337,10 @@ WideString CPDF_FormField::GetValue(bool bDefault) const {
}
switch (pValue->GetType()) {
- case CPDF_Object::STRING:
- case CPDF_Object::STREAM:
+ case CPDF_Object::kString:
+ case CPDF_Object::kStream:
return pValue->GetUnicodeText();
- case CPDF_Object::ARRAY:
+ case CPDF_Object::kArray:
pValue = pValue->AsArray()->GetDirectObjectAt(0);
if (pValue)
return pValue->GetUnicodeText();