mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 15:07:22 -06:00
Improve function interface
`SettingsStorage` methods require `QString` so make `SettingValue` follow it. `Path::operator+` can use `QStringView` to accept wider audience.
This commit is contained in:
@@ -152,12 +152,12 @@ void FileLogger::addLogMessage(const Log::Msg &msg)
|
||||
{
|
||||
closeLogFile();
|
||||
int counter = 0;
|
||||
Path backupLogFilename = m_path + ".bak";
|
||||
Path backupLogFilename = m_path + u".bak";
|
||||
|
||||
while (backupLogFilename.exists())
|
||||
{
|
||||
++counter;
|
||||
backupLogFilename = m_path + ".bak" + QString::number(counter);
|
||||
backupLogFilename = m_path + u".bak" + QString::number(counter);
|
||||
}
|
||||
|
||||
Utils::Fs::renameFile(m_path, backupLogFilename);
|
||||
|
||||
Reference in New Issue
Block a user