From d3b6cb7ec2da4afb5687c9d28b2be2f96e6aa7b1 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 10 Nov 2015 10:28:29 +0100 Subject: loplugin:nullptr (automatic rewrite) Change-Id: I05e89f9896170d4df3d1377549ea074f06b884a0 --- vcl/source/control/spinfld.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'vcl/source/control/spinfld.cxx') diff --git a/vcl/source/control/spinfld.cxx b/vcl/source/control/spinfld.cxx index b21c70344135..5f86629d5d17 100644 --- a/vcl/source/control/spinfld.cxx +++ b/vcl/source/control/spinfld.cxx @@ -862,14 +862,14 @@ Rectangle* SpinField::ImplFindPartRect(const Point& rPt) else if (maLowerRect.IsInside(rPt)) return &maLowerRect; else - return NULL; + return nullptr; } bool SpinField::PreNotify(NotifyEvent& rNEvt) { - const MouseEvent* pMouseEvt = NULL; + const MouseEvent* pMouseEvt = nullptr; - if ((rNEvt.GetType() == MouseNotifyEvent::MOUSEMOVE) && (pMouseEvt = rNEvt.GetMouseEvent()) != NULL) + if ((rNEvt.GetType() == MouseNotifyEvent::MOUSEMOVE) && (pMouseEvt = rNEvt.GetMouseEvent()) != nullptr) { if (!pMouseEvt->GetButtons() && !pMouseEvt->IsSynthetic() && !pMouseEvt->IsModifierChanged()) { -- cgit