修复编译问题 1217/1 1217/head
authorCaisking <3449750381@qq.com>
Sat, 19 Oct 2024 09:01:05 +0000 (17:01 +0800)
committerCaisking <3449750381@qq.com>
Sat, 19 Oct 2024 09:01:05 +0000 (17:01 +0800)
code/sdk/middleware/services/gui/uikit/ui/frameworks/font/ui_font_allocator.h

index a846759..f7b624a 100755 (executable)
@@ -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);