X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fdebug%2Ferrorreporter.cpp;h=6591c037ac68da524a76b740779c35549e5f7114;hb=HEAD;hp=d4d51bcc4610a82fc6a28b7d6611f2d68275dd0a;hpb=f042fd992170ee8a50a7f596f1c9cdd9600b8583;p=libs%2Fcore.git diff --git a/source/debug/errorreporter.cpp b/source/debug/errorreporter.cpp index d4d51bc..6591c03 100644 --- a/source/debug/errorreporter.cpp +++ b/source/debug/errorreporter.cpp @@ -3,17 +3,22 @@ namespace Msp { namespace Debug { -ErrorReporter *ErrorReporter::current = 0; +ErrorReporter *ErrorReporter::_current = nullptr; ErrorReporter::ErrorReporter(): - prev(current) + _prev(_current) { - current = this; + _current = this; } ErrorReporter::~ErrorReporter() { - current = prev; + _current = _prev; +} + +const ErrorReporter *ErrorReporter::get_current() +{ + return _current; } } // namespace Debug