From 232b918d1f0faec230652f4097b834257a7dbb27 Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Tue, 3 Apr 2018 16:32:19 +0000 Subject: Re-arrange so inline vectors come last in structs. This might make the memory tools more effective in finding OOBs. Change-Id: Id093bb0a88c37954c80d612ac00b5a168e75bdbf Reviewed-on: https://pdfium-review.googlesource.com/29550 Reviewed-by: dsinclair Commit-Queue: Tom Sepez --- core/fxge/cttfontdesc.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'core/fxge/cttfontdesc.h') diff --git a/core/fxge/cttfontdesc.h b/core/fxge/cttfontdesc.h index b48e78c6b6..bc0ea1737f 100644 --- a/core/fxge/cttfontdesc.h +++ b/core/fxge/cttfontdesc.h @@ -40,13 +40,12 @@ class CTTFontDesc { private: const bool m_bIsTTC; - + int m_RefCount = 1; + uint8_t* const m_pFontData; union { const FXFT_Face m_SingleFace; FXFT_Face m_TTCFaces[16]; }; - uint8_t* const m_pFontData; - int m_RefCount = 1; }; #endif // CORE_FXGE_CTTFONTDESC_H_ -- cgit v1.2.3