mirror of
https://github.com/google/benchmark.git
synced 2025-03-15 03:30:10 +08:00
Pass name by const-reference instead of by value in class Statistics' constructor (#668)
This commit is contained in:
parent
fbfc495d7f
commit
305ba313be
@ -425,7 +425,7 @@ struct Statistics {
|
||||
std::string name_;
|
||||
StatisticsFunc* compute_;
|
||||
|
||||
Statistics(std::string name, StatisticsFunc* compute)
|
||||
Statistics(const std::string& name, StatisticsFunc* compute)
|
||||
: name_(name), compute_(compute) {}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user