mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-06-26 10:54:28 +02:00
Make parameter 'configuration' a const reference
- Clang-Tidy: The parameter 'configuration' is copied for each invocation but only used as a const reference; Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
This commit is contained in:
parent
42cb7273cd
commit
ea9a5e341e
2 changed files with 2 additions and 2 deletions
|
@ -37,7 +37,7 @@
|
|||
#include <Chart.h>
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
Chart::Chart (ChartConfig configuration) :
|
||||
Chart::Chart (const ChartConfig& configuration) :
|
||||
reference_datetime(configuration.reference_datetime),
|
||||
with_label_month(configuration.with_label_month),
|
||||
with_label_week(configuration.with_label_week),
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
class Chart
|
||||
{
|
||||
public:
|
||||
explicit Chart (ChartConfig configuration);
|
||||
explicit Chart (const ChartConfig& configuration);
|
||||
|
||||
std::string render (const Interval&, const std::vector <Interval>&, const std::vector <Range>&, const std::map <Datetime, std::string>&);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue