mirror of
https://github.com/SFML/SFML.git
synced 2025-02-23 14:56:02 +08:00
Use in-class member initializers
This commit is contained in:
parent
b39e2ce0b5
commit
e66cc278b9
@ -86,8 +86,7 @@ class GlxErrorHandler
|
|||||||
public:
|
public:
|
||||||
explicit GlxErrorHandler(::Display* display) : m_display(display)
|
explicit GlxErrorHandler(::Display* display) : m_display(display)
|
||||||
{
|
{
|
||||||
glxErrorOccurred = false;
|
glxErrorOccurred = false;
|
||||||
m_previousHandler = XSetErrorHandler(handleXError);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
~GlxErrorHandler()
|
~GlxErrorHandler()
|
||||||
@ -99,7 +98,7 @@ public:
|
|||||||
private:
|
private:
|
||||||
std::lock_guard<std::recursive_mutex> m_lock{glxErrorMutex};
|
std::lock_guard<std::recursive_mutex> m_lock{glxErrorMutex};
|
||||||
::Display* m_display;
|
::Display* m_display;
|
||||||
int (*m_previousHandler)(::Display*, XErrorEvent*);
|
int (*m_previousHandler)(::Display*, XErrorEvent*){XSetErrorHandler(handleXError)};
|
||||||
};
|
};
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user