mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 20:35:36 +00:00
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:
@@ -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_ = {};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user