Skip to content

Commit ea5657d

Browse files
committed
Remove const&
1 parent e8f6e68 commit ea5657d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Framework/Core/include/Framework/HistogramRegistry.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ class HistogramRegistry
9393
HistPtr add(const HistogramSpec& histSpec);
9494
HistPtr add(char const* const name, char const* const title, const HistogramConfigSpec& histConfigSpec, bool callSumw2 = false);
9595
HistPtr add(char const* const name, char const* const title, HistType histType, const std::vector<AxisSpec>& axes, bool callSumw2 = false);
96-
HistPtr add(const std::string_view& name, char const* const title, HistType histType, const std::vector<AxisSpec>& axes, bool callSumw2 = false);
96+
HistPtr add(std::string_view name, char const* const title, HistType histType, const std::vector<AxisSpec>& axes, bool callSumw2 = false);
9797

9898
template <typename T>
9999
std::shared_ptr<T> add(char const* const name, char const* const title, const HistogramConfigSpec& histConfigSpec, bool callSumw2 = false);

Framework/Core/src/HistogramRegistry.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ HistPtr HistogramRegistry::add(char const* const name, char const* const title,
114114
return insert({name, title, {histType, axes}, callSumw2});
115115
}
116116

117-
HistPtr HistogramRegistry::add(const std::string_view& name, char const* const title, HistType histType, const std::vector<AxisSpec>& axes, bool callSumw2)
117+
HistPtr HistogramRegistry::add(std::string_view name, char const* const title, HistType histType, const std::vector<AxisSpec>& axes, bool callSumw2)
118118
{
119119
return insert({name.data(), title, {histType, axes}, callSumw2});
120120
}

0 commit comments

Comments
 (0)