summaryrefslogtreecommitdiff
path: root/core/fpdfapi/cmaps/cmap_int.h
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2017-11-06 15:27:20 +0000
committerChromium commit bot <commit-bot@chromium.org>2017-11-06 15:27:20 +0000
commit05ac5961fec712fe9d0f364012982620d814aade (patch)
tree519f12eb06a44c41697dc3f14cf58c47ed7d63d3 /core/fpdfapi/cmaps/cmap_int.h
parent52008e9c520e8b1a7e2a9d76578ac2b27fe3e06a (diff)
downloadpdfium-05ac5961fec712fe9d0f364012982620d814aade.tar.xz
Pack struct FXCMAP_CMap more densely to save 1 KB.
Change-Id: Ida9738f4ad7ef266c2edb794f12dcf49b64fc590 Reviewed-on: https://pdfium-review.googlesource.com/17750 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'core/fpdfapi/cmaps/cmap_int.h')
-rw-r--r--core/fpdfapi/cmaps/cmap_int.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/fpdfapi/cmaps/cmap_int.h b/core/fpdfapi/cmaps/cmap_int.h
index 15e153114e..464a3414e0 100644
--- a/core/fpdfapi/cmaps/cmap_int.h
+++ b/core/fpdfapi/cmaps/cmap_int.h
@@ -11,15 +11,15 @@
#include "core/fxcrt/fx_system.h"
struct FXCMAP_CMap {
- enum MapType { None, Single, Range };
+ enum MapType : uint8_t { None, Single, Range };
const char* m_Name;
- MapType m_WordMapType;
const uint16_t* m_pWordMap;
- uint16_t m_WordCount;
- MapType m_DWordMapType;
const uint16_t* m_pDWordMap;
+ uint16_t m_WordCount;
uint16_t m_DWordCount;
+ MapType m_WordMapType;
+ MapType m_DWordMapType;
int8_t m_UseOffset;
};