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/platform/gui/win/Clipboard.cpp | |
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/platform/gui/win/Clipboard.cpp')
-rw-r--r-- | src/platform/gui/win/Clipboard.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/platform/gui/win/Clipboard.cpp b/src/platform/gui/win/Clipboard.cpp index a0914a0b..9e305d1c 100644 --- a/src/platform/gui/win/Clipboard.cpp +++ b/src/platform/gui/win/Clipboard.cpp @@ -13,25 +13,25 @@ String WinClipboard::GetText() { auto god_window = application_->GetGodWindow(); if (!::OpenClipboard(god_window->GetHandle())) { - CRU_LOG_WARN(u"Failed to open clipboard."); + CRU_LOG_TAG_WARN(u"Failed to open clipboard."); return {}; } if (!::IsClipboardFormatAvailable(CF_UNICODETEXT)) { - CRU_LOG_WARN(u"Clipboard format for text is not available."); + CRU_LOG_TAG_WARN(u"Clipboard format for text is not available."); return {}; } auto handle = ::GetClipboardData(CF_UNICODETEXT); if (handle == nullptr) { - CRU_LOG_WARN(u"Failed to get clipboard data."); + CRU_LOG_TAG_WARN(u"Failed to get clipboard data."); return {}; } auto ptr = ::GlobalLock(handle); if (ptr == nullptr) { - CRU_LOG_WARN(u"Failed to lock clipboard data."); + CRU_LOG_TAG_WARN(u"Failed to lock clipboard data."); ::CloseClipboard(); return {}; } @@ -48,21 +48,21 @@ void WinClipboard::SetText(String text) { auto god_window = application_->GetGodWindow(); if (!::OpenClipboard(god_window->GetHandle())) { - CRU_LOG_WARN(u"Failed to open clipboard."); + CRU_LOG_TAG_WARN(u"Failed to open clipboard."); return; } auto handle = GlobalAlloc(GMEM_MOVEABLE, (text.size() + 1) * sizeof(wchar_t)); if (handle == nullptr) { - CRU_LOG_WARN(u"Failed to allocate clipboard data."); + CRU_LOG_TAG_WARN(u"Failed to allocate clipboard data."); ::CloseClipboard(); return; } auto ptr = ::GlobalLock(handle); if (ptr == nullptr) { - CRU_LOG_WARN(u"Failed to lock clipboard data."); + CRU_LOG_TAG_WARN(u"Failed to lock clipboard data."); ::GlobalFree(handle); ::CloseClipboard(); return; @@ -73,7 +73,7 @@ void WinClipboard::SetText(String text) { ::GlobalUnlock(handle); if (::SetClipboardData(CF_UNICODETEXT, handle) == nullptr) { - CRU_LOG_WARN(u"Failed to set clipboard data."); + CRU_LOG_TAG_WARN(u"Failed to set clipboard data."); } ::CloseClipboard(); |