Avoid giving arguments by value for log.

This commit is contained in:
Arkaran99 2014-09-27 22:56:27 +02:00
parent 67bc9acbe0
commit d9a95aae09
3 changed files with 14 additions and 12 deletions

View file

@ -97,7 +97,7 @@ struct wxWriter : Log::LogListener
}
//put message into the log buffer
void log(Log::LogMessage msg)
void log(const Log::LogMessage &msg)
{
u8 logLevel = Ini.HLELogLvl.GetValue();
if (msg.mType != Log::TTY && logLevel != 0)