]> git.tdb.fi Git - libs/core.git/blobdiff - source/debug/errorreporter.h
Use nullptr instead of 0 for pointers
[libs/core.git] / source / debug / errorreporter.h
index 98806ddc72212df5d8ca7e321540fec105afcdcc..9a60f85c0f41b8bbdc4244734302e0c47fabe1c3 100644 (file)
@@ -10,16 +10,16 @@ namespace Debug {
 class ErrorReporter: private NonCopyable
 {
 private:
-       ErrorReporter *prev;
+       ErrorReporter *_prev = nullptr;
 
-       static ErrorReporter *current;
+       static ErrorReporter *_current;
 
 protected:
        ErrorReporter();
 public:
        virtual ~ErrorReporter();
 
-       static const ErrorReporter *get_current() { return current; }
+       static const ErrorReporter *get_current() { return _current; }
 
        virtual bool report_uncaught_exception(const std::exception &) const = 0;
 };