diff options
author | Tom Sepez <tsepez@chromium.org> | 2018-07-02 19:23:53 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-07-02 19:23:53 +0000 |
commit | 61ff9b659a5b992e3e3ba4000f7ca5c799cc9ebf (patch) | |
tree | 327481dc21ffd9ea01676e9a174cf1a616fee5be /core/fxge/cfx_fontmapper.cpp | |
parent | 319ef06b2f695c7ebc26985d477b71fe8db93d3e (diff) | |
download | pdfium-61ff9b659a5b992e3e3ba4000f7ca5c799cc9ebf.tar.xz |
Comment some raw pointers that cant become UnownedPtr<>.
These appear in compile-time const data. Adding the comment makes
it easier to see what work remains when using grep.
Change-Id: Ibb5fe920dc9fc99dd4c866f9ddf800a58f6a67a8
Reviewed-on: https://pdfium-review.googlesource.com/36690
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'core/fxge/cfx_fontmapper.cpp')
-rw-r--r-- | core/fxge/cfx_fontmapper.cpp | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/core/fxge/cfx_fontmapper.cpp b/core/fxge/cfx_fontmapper.cpp index e6fc984edc..c7a7015680 100644 --- a/core/fxge/cfx_fontmapper.cpp +++ b/core/fxge/cfx_fontmapper.cpp @@ -41,10 +41,12 @@ const char* const g_Base14FontNames[kNumStandardFonts] = { "ZapfDingbats", }; -const struct AltFontName { - const char* m_pName; +struct AltFontName { + const char* m_pName; // Raw, POD struct. int m_Index; -} g_AltFontNames[] = { +}; + +const AltFontName g_AltFontNames[] = { {"Arial", 4}, {"Arial,Bold", 5}, {"Arial,BoldItalic", 6}, @@ -136,10 +138,12 @@ const struct AltFontName { {"ZapfDingbats", 13}, }; -const struct AltFontFamily { - const char* m_pFontName; - const char* m_pFontFamily; -} g_AltFontFamilies[] = { +struct AltFontFamily { + const char* m_pFontName; // Raw, POD struct. + const char* m_pFontFamily; // Raw, POD struct. +}; + +const AltFontFamily g_AltFontFamilies[] = { {"AGaramondPro", "Adobe Garamond Pro"}, {"BankGothicBT-Medium", "BankGothic Md BT"}, {"ForteMT", "Forte"}, |