Skip to content

Commit e73e483

Browse files
committed
avoid .data()
1 parent b940bc7 commit e73e483

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Framework/Core/src/HistogramRegistry.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ HistPtr HistogramRegistry::add(char const* const name, char const* const title,
116116

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

122122
// store a copy of an existing histogram (or group of histograms) under a different name

0 commit comments

Comments
 (0)