about summary refs log tree commit diff homepage
path: root/lib/Basic/Statistics.cpp
diff options
context:
space:
mode:
authorFrank Busse <bb0xfb@gmail.com>2020-03-19 17:46:51 +0000
committerCristian Cadar <c.cadar@imperial.ac.uk>2020-04-08 10:13:20 +0100
commitfd1200a9ac4b3ea17f20c52ac1b7e5d549edbae1 (patch)
tree786cafc645b835824321eb68dab180a04c46038a /lib/Basic/Statistics.cpp
parent5918152b52b5f9a4470834a97091308df69cdc67 (diff)
downloadklee-fd1200a9ac4b3ea17f20c52ac1b7e5d549edbae1.tar.gz
Statistic: slightly modernise class definition
Diffstat (limited to 'lib/Basic/Statistics.cpp')
-rw-r--r--lib/Basic/Statistics.cpp13
1 files changed, 4 insertions, 9 deletions
diff --git a/lib/Basic/Statistics.cpp b/lib/Basic/Statistics.cpp
index 402b0e5a..954051ea 100644
--- a/lib/Basic/Statistics.cpp
+++ b/lib/Basic/Statistics.cpp
@@ -64,21 +64,16 @@ static StatisticManager &getStatisticManager() {
 
 /* *** */
 
-Statistic::Statistic(const std::string &_name, 
-                     const std::string &_shortName) 
-  : name(_name), 
-    shortName(_shortName) {
+Statistic::Statistic(const std::string &name, const std::string &shortName)
+  : name{name}, shortName{shortName} {
   getStatisticManager().registerStatistic(*this);
 }
 
-Statistic::~Statistic() {
-}
-
-Statistic &Statistic::operator +=(const uint64_t addend) {
+Statistic &Statistic::operator+=(std::uint64_t addend) {
   theStatisticManager->incrementStatistic(*this, addend);
   return *this;
 }
 
-uint64_t Statistic::getValue() const {
+std::uint64_t Statistic::getValue() const {
   return theStatisticManager->getValue(*this);
 }