mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-25 16:43:33 +00:00
Use std::u8string_view in debug logger overloads parameters.
This commit is contained in:
parent
1a79f098fa
commit
a60cebd0f9
@ -63,7 +63,7 @@ Log& Log::operator<<(std::u8string&& rhs)
|
|||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
Log& Log::operator<<(const std::u8string& rhs)
|
Log& Log::operator<<(const std::u8string_view rhs)
|
||||||
{
|
{
|
||||||
if (mShouldLog)
|
if (mShouldLog)
|
||||||
std::cout << Misc::StringUtils::u8StringToString(rhs);
|
std::cout << Misc::StringUtils::u8StringToString(rhs);
|
||||||
|
@ -43,7 +43,7 @@ public:
|
|||||||
|
|
||||||
Log& operator<<(std::u8string&& rhs);
|
Log& operator<<(std::u8string&& rhs);
|
||||||
|
|
||||||
Log& operator<<(const std::u8string& rhs);
|
Log& operator<<(std::u8string_view rhs);
|
||||||
|
|
||||||
Log& operator<<(const char8_t* rhs);
|
Log& operator<<(const char8_t* rhs);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user