linter fixes

This commit is contained in:
Dave Murphy 2024-02-21 18:41:20 +00:00
parent f13356fb8b
commit 0f4a8bb3be
No known key found for this signature in database
GPG Key ID: F7FD5492264BB9D0
3 changed files with 6 additions and 4 deletions

View File

@ -32,7 +32,8 @@ const Config::Info<bool> LOGGER_WRITE_TO_WINDOW{
{Config::System::Logger, "Options", "WriteToWindow"}, true};
const Config::Info<LogLevel> LOGGER_VERBOSITY{{Config::System::Logger, "Options", "Verbosity"},
LogLevel::LNOTICE};
const Config::Info<bool> LOGGER_CONVERT_FROM_SJIS{{Config::System::Logger, "Options", "ConvertFromSJIS"}, true};
const Config::Info<bool> LOGGER_CONVERT_FROM_SJIS{
{Config::System::Logger, "Options", "ConvertFromSJIS"}, true};
class FileLogListener : public LogListener
{
@ -168,7 +169,8 @@ LogManager::LogManager()
container.m_enable = Config::Get(
Config::Info<bool>{{Config::System::Logger, "Logs", container.m_short_name}, false});
}
m_convert_sjis = Config::Get(Config::Info<bool>{{Config::System::Logger, "Options", "ConvertFromSJIS"}, true});
m_convert_sjis =
Config::Get(Config::Info<bool>{{Config::System::Logger, "Options", "ConvertFromSJIS"}, true});
m_path_cutoff_point = DeterminePathCutOffPoint();
}

View File

@ -48,7 +48,7 @@ public:
void SetEnable(LogType type, bool enable);
bool IsEnabled(LogType type, LogLevel level = LogLevel::LNOTICE) const;
void SetEnableConvertSJIS(bool enable) { m_convert_sjis = enable;}
void SetEnableConvertSJIS(bool enable) { m_convert_sjis = enable; }
bool IsEnabledConvertSJIS() const { return m_convert_sjis; }
std::map<std::string, std::string> GetLogTypes();

View File

@ -221,7 +221,7 @@ void LogConfigWidget::SaveSettings()
bool was_enabled = log_manager->IsEnabledConvertSJIS();
if (enabled != was_enabled)
log_manager->SetEnableConvertSJIS(enabled);
log_manager->SetEnableConvertSJIS(enabled);
}
void LogConfigWidget::closeEvent(QCloseEvent*)