From e7cb80d5153fcb5c7d6c154c87ecb666aca381b1 Mon Sep 17 00:00:00 2001 From: Caisking <3449750381@qq.com> Date: Sat, 19 Oct 2024 17:01:05 +0800 Subject: [PATCH] =?utf8?q?=E4=BF=AE=E5=A4=8D=E7=BC=96=E8=AF=91=E9=97=AE?= =?utf8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../services/gui/uikit/ui/frameworks/font/ui_font_allocator.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/sdk/middleware/services/gui/uikit/ui/frameworks/font/ui_font_allocator.h b/code/sdk/middleware/services/gui/uikit/ui/frameworks/font/ui_font_allocator.h index a8467593d..f7b624a79 100755 --- a/code/sdk/middleware/services/gui/uikit/ui/frameworks/font/ui_font_allocator.h +++ b/code/sdk/middleware/services/gui/uikit/ui/frameworks/font/ui_font_allocator.h @@ -20,7 +20,7 @@ namespace OHOS { class UIFontAllocator { - static constexpr uint8_t MEM_ALIGNMENT = 4; + static constexpr uint8_t UI_MEM_ALIGNMENT = 4; struct Chunk { uint32_t next; @@ -52,7 +52,7 @@ public: private: uint32_t AlignSize(uint32_t size) { - return (size + MEM_ALIGNMENT - 1U) & ~(MEM_ALIGNMENT - 1U); + return (size + UI_MEM_ALIGNMENT - 1U) & ~(UI_MEM_ALIGNMENT - 1U); } void CombineFree(Chunk* cache); -- 2.17.1