From: <man...@us...> - 2015-04-26 09:10:41
|
Revision: 5005 http://sourceforge.net/p/modplug/code/5005 Author: manxorist Date: 2015-04-26 09:10:29 +0000 (Sun, 26 Apr 2015) Log Message: ----------- [Ref] Tiny cleanup. Modified Paths: -------------- trunk/OpenMPT/mptrack/Moddoc.cpp Modified: trunk/OpenMPT/mptrack/Moddoc.cpp =================================================================== --- trunk/OpenMPT/mptrack/Moddoc.cpp 2015-04-25 17:31:46 UTC (rev 5004) +++ trunk/OpenMPT/mptrack/Moddoc.cpp 2015-04-26 09:10:29 UTC (rev 5005) @@ -882,14 +882,7 @@ m_Log.push_back(LogEntry(level, text)); } else { - switch(level) - { - case LogError: Reporting::Error(text); break; - case LogWarning: Reporting::Warning(text); break; - case LogInformation: Reporting::Information(text); break; - case LogNotification: Reporting::Notification(text); break; - default: Reporting::Information(text); break; - } + Reporting::Message(level, text); } } @@ -941,14 +934,7 @@ { std::wstring text = preamble + mpt::ToWide(GetLogString()); std::wstring actualTitle = (title.length() == 0) ? MAINFRAME_TITLEW : title; - switch(GetMaxLogLevel()) - { - case LogError: Reporting::Error(text, actualTitle, parent); break; - case LogWarning: Reporting::Warning(text, actualTitle, parent); break; - case LogInformation: Reporting::Information(text, actualTitle, parent); break; - case LogNotification: Reporting::Notification(text, actualTitle, parent); break; - default: Reporting::Information(text, actualTitle, parent); break; - } + Reporting::Message(GetMaxLogLevel(), text, actualTitle, parent); return IDOK; } return IDCANCEL; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |