X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fdebug%2Ferrorreporter.cpp;h=6591c037ac68da524a76b740779c35549e5f7114;hb=HEAD;hp=8f080a307c1dbebb64605d73ee92d33685d5d608;hpb=5763dd6e8089c97699cbcbd221afb7fe1841bcdd;p=libs%2Fcore.git diff --git a/source/debug/errorreporter.cpp b/source/debug/errorreporter.cpp index 8f080a3..6591c03 100644 --- a/source/debug/errorreporter.cpp +++ b/source/debug/errorreporter.cpp @@ -3,7 +3,7 @@ namespace Msp { namespace Debug { -ErrorReporter *ErrorReporter::_current = 0; +ErrorReporter *ErrorReporter::_current = nullptr; ErrorReporter::ErrorReporter(): _prev(_current) @@ -16,5 +16,10 @@ ErrorReporter::~ErrorReporter() _current = _prev; } +const ErrorReporter *ErrorReporter::get_current() +{ + return _current; +} + } // namespace Debug } // namespace Msp