Gui: modernize C++: use default member init

This commit is contained in:
wmayer
2023-08-23 16:29:19 +02:00
committed by wwmayer
parent ee0fad4c90
commit 5a153e50ff
79 changed files with 220 additions and 325 deletions

View File

@@ -93,7 +93,7 @@ namespace Gui {
class NS::Event : public sc::event<NS::Event>
{
public:
Event():inventor_event(nullptr), modifiers{}, flags(new Flags){}
Event() : flags(new Flags){}
virtual ~Event() = default;
void log() const {
@@ -197,8 +197,8 @@ public:
};
public:
const SoEvent* inventor_event;
unsigned int modifiers;
const SoEvent* inventor_event{nullptr};
unsigned int modifiers{0};
unsigned int mbstate() const {return modifiers & MASKBUTTONS;}
unsigned int kbdstate() const {return modifiers & MASKMODIFIERS;}