diff options
Diffstat (limited to 'src/base/statistics.hh')
-rw-r--r-- | src/base/statistics.hh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/base/statistics.hh b/src/base/statistics.hh index 88704207d..cd5be21ce 100644 --- a/src/base/statistics.hh +++ b/src/base/statistics.hh @@ -114,6 +114,9 @@ class Info Info(); virtual ~Info(); + /** Set the name of this statistic */ + void setName(const std::string &name); + /** * Check that this stat has been set up properly and is ready for * use @@ -402,10 +405,10 @@ class DataWrap : public InfoAccess * @return A reference to this stat. */ Derived & - name(const std::string &_name) + name(const std::string &name) { Info *info = this->info(); - info->name = _name; + info->setName(name); info->flags |= print; return this->self(); } |