mirror of
https://github.com/aseprite/aseprite.git
synced 2024-12-28 15:20:15 +00:00
Fix initialization order of base class and member variable in ui::CloseEvent class
Fixed clang warning: field 'm_canceled' will be initialized after base 'ui::Event'
This commit is contained in:
parent
495623d6b2
commit
7d248c33d7
@ -16,7 +16,8 @@ namespace ui {
|
||||
{
|
||||
public:
|
||||
CloseEvent(Component* source)
|
||||
: m_canceled(false), Event(source) { }
|
||||
: Event(source)
|
||||
, m_canceled(false) { }
|
||||
void cancel() { m_canceled = true; }
|
||||
bool canceled() const { return m_canceled; }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user