diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 10:28:29 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 10:32:00 +0100 |
commit | d3b6cb7ec2da4afb5687c9d28b2be2f96e6aa7b1 (patch) | |
tree | e9d209d6d5f06cacd8e0df78c7f6b8ad45d74be5 /include/vcl/event.hxx | |
parent | 45979047abbd9da7a29401f298e8ef9ab58ad337 (diff) |
loplugin:nullptr (automatic rewrite)
Change-Id: I05e89f9896170d4df3d1377549ea074f06b884a0
Diffstat (limited to 'include/vcl/event.hxx')
-rw-r--r-- | include/vcl/event.hxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/include/vcl/event.hxx b/include/vcl/event.hxx index 153ad9503717..aa9bb1f5fc9e 100644 --- a/include/vcl/event.hxx +++ b/include/vcl/event.hxx @@ -410,7 +410,7 @@ public: NotifyEvent(); NotifyEvent( MouseNotifyEvent nEventType, vcl::Window* pWindow, - const void* pEvent = NULL, + const void* pEvent = nullptr, long nRet = 0 ); MouseNotifyEvent GetType() const { return mnEventType; } @@ -426,7 +426,7 @@ inline const KeyEvent* NotifyEvent::GetKeyEvent() const if ( (mnEventType == MouseNotifyEvent::KEYINPUT) || (mnEventType == MouseNotifyEvent::KEYUP) ) return static_cast<const KeyEvent*>(mpData); else - return NULL; + return nullptr; } inline const MouseEvent* NotifyEvent::GetMouseEvent() const @@ -434,7 +434,7 @@ inline const MouseEvent* NotifyEvent::GetMouseEvent() const if ( (mnEventType >= MouseNotifyEvent::MOUSEBUTTONDOWN) && (mnEventType <= MouseNotifyEvent::MOUSEMOVE) ) return static_cast<const MouseEvent*>(mpData); else - return NULL; + return nullptr; } inline const CommandEvent* NotifyEvent::GetCommandEvent() const @@ -442,7 +442,7 @@ inline const CommandEvent* NotifyEvent::GetCommandEvent() const if ( mnEventType == MouseNotifyEvent::COMMAND ) return static_cast<const CommandEvent*>(mpData); else - return NULL; + return nullptr; } @@ -469,7 +469,7 @@ private: public: explicit DataChangedEvent(); explicit DataChangedEvent( DataChangedEventType nType, - const void* pData = NULL, + const void* pData = nullptr, AllSettingsFlags nFlags = AllSettingsFlags::NONE ); DataChangedEventType GetType() const { return mnType; } @@ -480,7 +480,7 @@ public: inline DataChangedEvent::DataChangedEvent() { - mpData = NULL; + mpData = nullptr; mnFlags = AllSettingsFlags::NONE; mnType = DataChangedEventType::NONE; } @@ -499,7 +499,7 @@ inline const AllSettings* DataChangedEvent::GetOldSettings() const if ( mnType == DataChangedEventType::SETTINGS ) return static_cast<const AllSettings*>(mpData); else - return NULL; + return nullptr; } #endif // INCLUDED_VCL_EVENT_HXX |