]> git.tdb.fi Git - libs/core.git/blobdiff - source/debug/errorreporter.cpp
Add move semantics to Variant
[libs/core.git] / source / debug / errorreporter.cpp
index 8f080a307c1dbebb64605d73ee92d33685d5d608..6591c037ac68da524a76b740779c35549e5f7114 100644 (file)
@@ -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