summaryrefslogtreecommitdiff
path: root/core/src/fpdfdoc
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2016-01-26 11:47:43 -0800
committerTom Sepez <tsepez@chromium.org>2016-01-26 11:47:43 -0800
commit66a9dc9dd65ed2b9c7ede448d046b770140f16d5 (patch)
tree9d44a3134e9cdc9e13004a633fd82a417410b102 /core/src/fpdfdoc
parente56b3ad57573c677ad84bf4a2ffd649d6134b990 (diff)
downloadpdfium-66a9dc9dd65ed2b9c7ede448d046b770140f16d5.tar.xz
War on #defines, part 1.
Make the two fundamental "object" types be enums. R=thestig@chromium.org Review URL: https://codereview.chromium.org/1632143002 .
Diffstat (limited to 'core/src/fpdfdoc')
-rw-r--r--core/src/fpdfdoc/doc_formfield.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/core/src/fpdfdoc/doc_formfield.cpp b/core/src/fpdfdoc/doc_formfield.cpp
index 46ea01083d..dc31938b16 100644
--- a/core/src/fpdfdoc/doc_formfield.cpp
+++ b/core/src/fpdfdoc/doc_formfield.cpp
@@ -300,14 +300,16 @@ CFX_WideString CPDF_FormField::GetValue(FX_BOOL bDefault) {
}
}
switch (pValue->GetType()) {
- case PDFOBJ_STRING:
- case PDFOBJ_STREAM:
+ case CPDF_Object::STRING:
+ case CPDF_Object::STREAM:
return pValue->GetUnicodeText();
- case PDFOBJ_ARRAY:
+ case CPDF_Object::ARRAY:
pValue = pValue->AsArray()->GetElementValue(0);
if (pValue)
return pValue->GetUnicodeText();
break;
+ default:
+ break;
}
return CFX_WideString();
}