summaryrefslogtreecommitdiff
path: root/xfa/fxfa/parser/xfa_utils.cpp
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-11-08 19:38:22 +0000
committerChromium commit bot <commit-bot@chromium.org>2017-11-08 19:38:22 +0000
commit3305678c7c954ba11be0ed089f7acd2b09af0779 (patch)
tree27028722a662b9ca8cd75e32aa6fcad232c18a89 /xfa/fxfa/parser/xfa_utils.cpp
parent42d72ca1aa4763901f7c80e52c9a1c367175286d (diff)
downloadpdfium-3305678c7c954ba11be0ed089f7acd2b09af0779.tar.xz
Convert XFA_PACKET to an enum class
This CL converts the XFA_PACKET enum to the XFA_PacketType enum class. Change-Id: Ic65e61c2ee681750ca0e672bc4206d676556a862 Reviewed-on: https://pdfium-review.googlesource.com/18110 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'xfa/fxfa/parser/xfa_utils.cpp')
-rw-r--r--xfa/fxfa/parser/xfa_utils.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/xfa/fxfa/parser/xfa_utils.cpp b/xfa/fxfa/parser/xfa_utils.cpp
index e5091eec0f..122cfb0a1a 100644
--- a/xfa/fxfa/parser/xfa_utils.cpp
+++ b/xfa/fxfa/parser/xfa_utils.cpp
@@ -464,8 +464,8 @@ const XFA_ATTRIBUTEENUMINFO* XFA_GetAttributeEnumByName(
return nullptr;
}
-const XFA_PACKETINFO* XFA_GetPacketByIndex(XFA_PACKET ePacket) {
- return g_XFAPacketData + ePacket;
+const XFA_PACKETINFO* XFA_GetPacketByIndex(XFA_PacketType ePacket) {
+ return g_XFAPacketData + static_cast<uint8_t>(ePacket);
}
const XFA_PACKETINFO* XFA_GetPacketByID(uint32_t dwPacket) {