From 5edaa008efabb1b97446bed2f6b542cf01eb3c70 Mon Sep 17 00:00:00 2001 From: Yuqian Yang Date: Fri, 5 Dec 2025 20:33:50 +0800 Subject: Remove CRU_DEFINE_CLASS_LOG_TAG. --- include/cru/ui/controls/Control.h | 3 ++- include/cru/ui/controls/ControlHost.h | 3 ++- include/cru/ui/controls/TextHostControlService.h | 3 ++- include/cru/ui/controls/Window.h | 3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) (limited to 'include/cru/ui/controls') diff --git a/include/cru/ui/controls/Control.h b/include/cru/ui/controls/Control.h index c82956b5..8cd7a375 100644 --- a/include/cru/ui/controls/Control.h +++ b/include/cru/ui/controls/Control.h @@ -23,7 +23,8 @@ class CRU_UI_API Control : public Object, public SelfResolvable { friend class ControlHost; - CRU_DEFINE_CLASS_LOG_TAG("cru::ui::controls::Control") + private: + constexpr static auto kLogTag = "cru::ui::controls::Control"; protected: explicit Control(std::string name); diff --git a/include/cru/ui/controls/ControlHost.h b/include/cru/ui/controls/ControlHost.h index fffbbb34..5e8d678b 100644 --- a/include/cru/ui/controls/ControlHost.h +++ b/include/cru/ui/controls/ControlHost.h @@ -10,7 +10,8 @@ namespace cru::ui::controls { class CRU_UI_API ControlHost : public Object { - CRU_DEFINE_CLASS_LOG_TAG("cru::ui::controls::ControlHost") + private: + constexpr static auto kLogTag = "cru::ui::controls::ControlHost"; friend Control; public: diff --git a/include/cru/ui/controls/TextHostControlService.h b/include/cru/ui/controls/TextHostControlService.h index 1430a215..14910b57 100644 --- a/include/cru/ui/controls/TextHostControlService.h +++ b/include/cru/ui/controls/TextHostControlService.h @@ -70,7 +70,8 @@ class TextControlMovePattern { }; class CRU_UI_API TextHostControlService : public Object { - CRU_DEFINE_CLASS_LOG_TAG("cru::ui::controls::TextControlService") + private: + constexpr static auto kLogTag = "cru::ui::controls::TextControlService"; public: TextHostControlService(Control* control); diff --git a/include/cru/ui/controls/Window.h b/include/cru/ui/controls/Window.h index 2c650c41..131d68a8 100644 --- a/include/cru/ui/controls/Window.h +++ b/include/cru/ui/controls/Window.h @@ -15,7 +15,8 @@ namespace cru::ui::controls { class CRU_UI_API Window : public LayoutControl { - CRU_DEFINE_CLASS_LOG_TAG("cru::ui::controls::Window") + private: + constexpr static auto kLogTag = "cru::ui::controls::Window"; friend Control; public: -- cgit v1.2.3