From b53780b2106b0f233c48e27653336b8a629ca486 Mon Sep 17 00:00:00 2001 From: Yuqian Yang Date: Mon, 18 Aug 2025 18:38:10 +0800 Subject: Rename CRU_LOG_* to CRU_LOG_TAG_*. --- src/ui/controls/TextHostControlService.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/ui/controls/TextHostControlService.cpp') 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(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); } -- cgit v1.2.3