]> git.tdb.fi Git - libs/gui.git/blob - source/graphics/errordialog.h
Use nullptr in place of 0 or NULL
[libs/gui.git] / source / graphics / errordialog.h
1 #ifndef MSP_GRAPHICS_ERRORDIALOG_H_
2 #define MSP_GRAPHICS_ERRORDIALOG_H_
3
4 #include <msp/debug/errorreporter.h>
5
6 namespace Msp {
7 namespace Graphics {
8
9 class Display;
10
11 class ErrorDialog: public Debug::ErrorReporter
12 {
13 private:
14         Display *display = nullptr;
15
16 public:
17         ErrorDialog(Display *d): display(d) { }
18
19         bool report_uncaught_exception(const std::exception &) const override;
20 };
21
22 } // namespace Graphics
23 } // namespace Msp
24
25 #endif