diff options
Diffstat (limited to 'core/fxge/android/cfpf_skiapathfont.h')
-rw-r--r-- | core/fxge/android/cfpf_skiapathfont.h | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/core/fxge/android/cfpf_skiapathfont.h b/core/fxge/android/cfpf_skiapathfont.h index 8b7a4f9fb4..6cba42acff 100644 --- a/core/fxge/android/cfpf_skiapathfont.h +++ b/core/fxge/android/cfpf_skiapathfont.h @@ -14,19 +14,14 @@ class CFPF_SkiaPathFont : public CFPF_SkiaFontDescriptor { public: - CFPF_SkiaPathFont() : m_pPath(nullptr) {} - ~CFPF_SkiaPathFont() override { FX_Free(m_pPath); } + CFPF_SkiaPathFont(); + ~CFPF_SkiaPathFont() override; // CFPF_SkiaFontDescriptor - int32_t GetType() const override { return FPF_SKIAFONTTYPE_Path; } - - void SetPath(const char* pPath) { - FX_Free(m_pPath); - int32_t iSize = FXSYS_strlen(pPath); - m_pPath = FX_Alloc(char, iSize + 1); - memcpy(m_pPath, pPath, iSize * sizeof(char)); - m_pPath[iSize] = 0; - } + int32_t GetType() const override; + + void SetPath(const char* pPath); + char* m_pPath; }; |