Skip to content
Permalink
Browse files

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>
  • Loading branch information...
lauft committed Apr 10, 2019
1 parent 42cb727 commit ea9a5e341eacacfbad736b222f6ceb81551f9acd
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/Chart.cpp
  2. +1 −1 src/Chart.h
@@ -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>&);

0 comments on commit ea9a5e3

Please sign in to comment.
You can’t perform that action at this time.