mirror of
https://github.com/minetest/irrlicht.git
synced 2025-07-01 15:50:27 +02:00
Reduce needless use of wchar / stringw
This commit is contained in:
@ -59,38 +59,6 @@ namespace irr
|
||||
log (s.c_str(), ll);
|
||||
}
|
||||
|
||||
//! Prints out a text into the log
|
||||
void CLogger::log(const wchar_t* text, ELOG_LEVEL ll)
|
||||
{
|
||||
if (ll < LogLevel)
|
||||
return;
|
||||
|
||||
core::stringc s = text;
|
||||
log(s.c_str(), ll);
|
||||
}
|
||||
|
||||
|
||||
//! Prints out a text into the log
|
||||
void CLogger::log(const wchar_t* text, const wchar_t* hint, ELOG_LEVEL ll)
|
||||
{
|
||||
if (ll < LogLevel)
|
||||
return;
|
||||
|
||||
core::stringc s1 = text;
|
||||
core::stringc s2 = hint;
|
||||
log(s1.c_str(), s2.c_str(), ll);
|
||||
}
|
||||
|
||||
//! Prints out a text into the log
|
||||
void CLogger::log(const c8* text, const wchar_t* hint, ELOG_LEVEL ll)
|
||||
{
|
||||
if (ll < LogLevel)
|
||||
return;
|
||||
|
||||
core::stringc s2 = hint;
|
||||
log( text, s2.c_str(), ll);
|
||||
}
|
||||
|
||||
//! Sets a new event receiver
|
||||
void CLogger::setReceiver(IEventReceiver* r)
|
||||
{
|
||||
|
Reference in New Issue
Block a user