X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fdebug%2Ferrorreporter.h;h=9a60f85c0f41b8bbdc4244734302e0c47fabe1c3;hb=4ad05c650c55e3edccea887d15b26f41cdf60fb6;hp=b0385ff15d1c31ce2a0ea769d569b30b9fae37a5;hpb=f042fd992170ee8a50a7f596f1c9cdd9600b8583;p=libs%2Fcore.git diff --git a/source/debug/errorreporter.h b/source/debug/errorreporter.h index b0385ff..9a60f85 100644 --- a/source/debug/errorreporter.h +++ b/source/debug/errorreporter.h @@ -2,23 +2,24 @@ #define MSP_DEBUG_ERRORREPORTER_H_ #include +#include namespace Msp { namespace Debug { -class ErrorReporter +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; };