mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-13 00:33:09 -07: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:
parent
11cfe38d1c
commit
c6b772da11
33 changed files with 222 additions and 239 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue