aboutsummaryrefslogtreecommitdiff
path: root/src/util/timetaker.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/timetaker.h')
-rw-r--r--src/util/timetaker.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/util/timetaker.h b/src/util/timetaker.h
index c10f4f535..34564ee4b 100644
--- a/src/util/timetaker.h
+++ b/src/util/timetaker.h
@@ -30,7 +30,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
class TimeTaker
{
public:
- TimeTaker(const std::string &name, u64 *result=NULL,
+ TimeTaker(const std::string &name, u64 *result=nullptr,
TimePrecision prec=PRECISION_MILLI);
~TimeTaker()
@@ -45,9 +45,9 @@ public:
private:
std::string m_name;
u64 m_time1;
- bool m_running;
+ bool m_running = true;
TimePrecision m_precision;
- u64 *m_result;
+ u64 *m_result = nullptr;
};
#endif