mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-20 07:27:22 -06:00
Avoid potential container detachment
Suppress clazy warning: warning: Don't call QList::operator[]() on temporary [-Wclazy-detaching-temporary]
This commit is contained in:
@@ -1616,7 +1616,7 @@ void TorrentImpl::renameFile(const int index, const QString &path)
|
||||
m_oldPath[index].push_back(oldPath);
|
||||
#endif
|
||||
++m_renameCount;
|
||||
m_nativeHandle.rename_file(m_torrentInfo.nativeIndexes()[index], Utils::Fs::toNativePath(path).toStdString());
|
||||
m_nativeHandle.rename_file(m_torrentInfo.nativeIndexes().at(index), Utils::Fs::toNativePath(path).toStdString());
|
||||
}
|
||||
|
||||
void TorrentImpl::handleStateUpdate(const lt::torrent_status &nativeStatus)
|
||||
|
||||
Reference in New Issue
Block a user