mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-29 23:07:48 +02:00
sonar cloud fixes
This commit is contained in:
@@ -68,12 +68,12 @@ class CStatisticScreen : public CWindowObject
|
||||
Rect contentArea;
|
||||
|
||||
using ExtractFunctor = std::function<float(StatisticDataSetEntry val)>;
|
||||
TData extractData(StatisticDataSet & stat, ExtractFunctor selector);
|
||||
TIcons extractIcons();
|
||||
TData extractData(const StatisticDataSet & stat, const ExtractFunctor & selector);
|
||||
TIcons extractIcons() const;
|
||||
std::shared_ptr<CIntObject> getContent(Content c, EGameResID res);
|
||||
void onSelectButton();
|
||||
public:
|
||||
CStatisticScreen(StatisticDataSet & stat);
|
||||
CStatisticScreen(const StatisticDataSet & stat);
|
||||
static std::string getDay(int day);
|
||||
};
|
||||
|
||||
@@ -90,7 +90,7 @@ class StatisticSelector : public CWindowObject
|
||||
|
||||
void update(int to);
|
||||
public:
|
||||
StatisticSelector(std::vector<std::string> & texts, std::function<void(int selectedIndex)> cb);
|
||||
StatisticSelector(const std::vector<std::string> & texts, const std::function<void(int selectedIndex)> & cb);
|
||||
};
|
||||
|
||||
class OverviewPanel : public CIntObject
|
||||
@@ -111,7 +111,7 @@ class OverviewPanel : public CIntObject
|
||||
std::vector<StatisticDataSetEntry> playerDataFilter(PlayerColor color);
|
||||
void update(int to);
|
||||
public:
|
||||
OverviewPanel(Rect position, std::string title, StatisticDataSet & stat);
|
||||
OverviewPanel(Rect position, std::string title, const StatisticDataSet & stat);
|
||||
};
|
||||
|
||||
class LineChart : public CIntObject
|
||||
|
||||
Reference in New Issue
Block a user