mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-07 13:41:26 -07:00
Use reference whenever possible
This commit is contained in:
parent
5b43782f58
commit
8c9b6e2f2d
12 changed files with 13 additions and 13 deletions
|
@ -4986,7 +4986,7 @@ void SessionImpl::upgradeCategories()
|
|||
const auto legacyCategories = SettingValue<QVariantMap>(u"BitTorrent/Session/Categories"_qs).get();
|
||||
for (auto it = legacyCategories.cbegin(); it != legacyCategories.cend(); ++it)
|
||||
{
|
||||
const QString categoryName = it.key();
|
||||
const QString &categoryName = it.key();
|
||||
CategoryOptions categoryOptions;
|
||||
categoryOptions.savePath = Path(it.value().toString());
|
||||
m_categories[categoryName] = categoryOptions;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue