summaryrefslogtreecommitdiff
path: root/core/fxge/ge/fx_text_int.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/fxge/ge/fx_text_int.h')
-rw-r--r--core/fxge/ge/fx_text_int.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/core/fxge/ge/fx_text_int.h b/core/fxge/ge/fx_text_int.h
index 8ea01f91d6..dcd54cead0 100644
--- a/core/fxge/ge/fx_text_int.h
+++ b/core/fxge/ge/fx_text_int.h
@@ -8,12 +8,14 @@
#define CORE_FXGE_GE_FX_TEXT_INT_H_
#include <map>
+#include <memory>
#include "core/fxge/fx_font.h"
#include "core/fxge/fx_freetype.h"
-struct _CFX_UniqueKeyGen {
+struct CFX_UniqueKeyGen {
void Generate(int count, ...);
+
char m_Key[128];
int m_KeyLen;
};
@@ -22,7 +24,8 @@ class CFX_SizeGlyphCache {
public:
CFX_SizeGlyphCache();
~CFX_SizeGlyphCache();
- std::map<uint32_t, CFX_GlyphBitmap*> m_GlyphMap;
+
+ std::map<uint32_t, std::unique_ptr<CFX_GlyphBitmap>> m_GlyphMap;
};
#endif // CORE_FXGE_GE_FX_TEXT_INT_H_