1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-03-24 04:43:49 +00:00

Use std::u8string_view in debug logger overloads parameters.

This commit is contained in:
Project579 2022-09-10 12:11:56 +02:00
parent 1a79f098fa
commit a60cebd0f9
2 changed files with 2 additions and 2 deletions

View File

@ -63,7 +63,7 @@ Log& Log::operator<<(std::u8string&& rhs)
return *this;
}
Log& Log::operator<<(const std::u8string& rhs)
Log& Log::operator<<(const std::u8string_view rhs)
{
if (mShouldLog)
std::cout << Misc::StringUtils::u8StringToString(rhs);

View File

@ -43,7 +43,7 @@ public:
Log& operator<<(std::u8string&& rhs);
Log& operator<<(const std::u8string& rhs);
Log& operator<<(std::u8string_view rhs);
Log& operator<<(const char8_t* rhs);