refactor: fix sonarcloud warnings (#3649)

* refactor: help sonarcloud to see that tr_bandwidth dtor does not throw

* refactor: use std::map instead of QMap in qt FileTreeModel
This commit is contained in:
Charles Kerr
2022-08-16 09:30:05 -05:00
committed by GitHub
parent 99c21efecc
commit 293f4f6759
4 changed files with 26 additions and 13 deletions

View File

@@ -6,10 +6,10 @@
#pragma once
#include <cstdint> // uint64_t
#include <map>
#include <memory>
#include <QAbstractItemModel>
#include <QMap>
#include <QSet>
#include <libtransmission/tr-macros.h>
@@ -95,7 +95,7 @@ private:
FileTreeItem* itemFromIndex(QModelIndex const&) const;
QModelIndexList getOrphanIndices(QModelIndexList const& indices) const;
QMap<int, FileTreeItem*> index_cache_;
std::map<int, FileTreeItem*> index_cache_;
std::unique_ptr<FileTreeItem> root_item_;
bool is_editable_ = {};
};