refactor: StrUtils::Concat 用于连接字符串,比 + 更快

This commit is contained in:
Xu Liu 2022-03-06 19:35:34 +08:00
commit 19ffb76203
7 changed files with 111 additions and 8 deletions

View file

@ -58,7 +58,7 @@ bool GraphicsCaptureFrameSource::Initialize() {
return false;
}
} catch (const winrt::hresult_error& e) {
Logger::Get().Error(fmt::format("初始化 WinRT 失败:{}", StrUtils::UTF16ToUTF8(e.message())));
Logger::Get().Error(StrUtils::Concat("初始化 WinRT 失败:", StrUtils::UTF16ToUTF8(e.message())));
return false;
}