]> 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 d4d51bcc4610a82fc6a28b7d6611f2d68275dd0a..6591c037ac68da524a76b740779c35549e5f7114 100644 (file)
@@ -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