diff options
author | Yuqian Yang <crupest@crupest.life> | 2025-08-18 18:38:10 +0800 |
---|---|---|
committer | Yuqian Yang <crupest@crupest.life> | 2025-08-18 18:38:10 +0800 |
commit | b53780b2106b0f233c48e27653336b8a629ca486 (patch) | |
tree | e5e2659eb23852012804e9ba8a290a8e19d8230f /src/ui/controls | |
parent | d3568fb844c7b9ea59783b04899dbd94ad972b91 (diff) | |
download | cru-b53780b2106b0f233c48e27653336b8a629ca486.tar.gz cru-b53780b2106b0f233c48e27653336b8a629ca486.tar.bz2 cru-b53780b2106b0f233c48e27653336b8a629ca486.zip |
Rename CRU_LOG_* to CRU_LOG_TAG_*.
Diffstat (limited to 'src/ui/controls')
-rw-r--r-- | src/ui/controls/Control.cpp | 2 | ||||
-rw-r--r-- | src/ui/controls/TextHostControlService.cpp | 12 |
2 files changed, 7 insertions, 7 deletions
diff --git a/src/ui/controls/Control.cpp b/src/ui/controls/Control.cpp index 17633e3d..d6770684 100644 --- a/src/ui/controls/Control.cpp +++ b/src/ui/controls/Control.cpp @@ -30,7 +30,7 @@ Control::Control() { Control::~Control() { if (host::WindowHost::IsInEventHandling()) { - CRU_LOG_ERROR( + CRU_LOG_TAG_ERROR( u"Control destroyed during event handling. Please use DeleteLater."); } diff --git a/src/ui/controls/TextHostControlService.cpp b/src/ui/controls/TextHostControlService.cpp index 3e885bd3..bc562e88 100644 --- a/src/ui/controls/TextHostControlService.cpp +++ b/src/ui/controls/TextHostControlService.cpp @@ -227,7 +227,7 @@ void TextHostControlService::SetText(String text, bool stop_composition) { void TextHostControlService::InsertText(Index position, StringView text, bool stop_composition) { if (!Utf16IsValidInsertPosition(this->text_, position)) { - CRU_LOG_ERROR(u"Invalid text insert position."); + CRU_LOG_TAG_ERROR(u"Invalid text insert position."); return; } this->text_.insert(this->text_.cbegin() + position, text); @@ -240,7 +240,7 @@ void TextHostControlService::InsertText(Index position, StringView text, void TextHostControlService::DeleteChar(Index position, bool stop_composition) { if (!Utf16IsValidInsertPosition(this->text_, position)) { - CRU_LOG_ERROR(u"Invalid text delete position."); + CRU_LOG_TAG_ERROR(u"Invalid text delete position."); return; } if (position == static_cast<Index>(this->text_.size())) return; @@ -253,7 +253,7 @@ void TextHostControlService::DeleteChar(Index position, bool stop_composition) { Index TextHostControlService::DeleteCharPrevious(Index position, bool stop_composition) { if (!Utf16IsValidInsertPosition(this->text_, position)) { - CRU_LOG_ERROR(u"Invalid text delete position."); + CRU_LOG_TAG_ERROR(u"Invalid text delete position."); return 0; } if (position == 0) return 0; @@ -269,11 +269,11 @@ void TextHostControlService::DeleteText(TextRange range, if (range.count == 0) return; range = range.Normalize(); if (!Utf16IsValidInsertPosition(this->text_, range.GetStart())) { - CRU_LOG_ERROR(u"Invalid text delete start position."); + CRU_LOG_TAG_ERROR(u"Invalid text delete start position."); return; } if (!Utf16IsValidInsertPosition(this->text_, range.GetStart())) { - CRU_LOG_ERROR(u"Invalid text delete end position."); + CRU_LOG_TAG_ERROR(u"Invalid text delete end position."); return; } this->text_.erase(this->text_.cbegin() + range.GetStart(), @@ -465,7 +465,7 @@ void TextHostControlService::UpdateInputMethodPosition() { right_bottom.y += 5; if constexpr (debug_flags::text_service) { - CRU_LOG_DEBUG(u"Calculate input method candidate window position: {}.", + CRU_LOG_TAG_DEBUG(u"Calculate input method candidate window position: {}.", right_bottom); } |