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 /vcl/unx/generic/gdi/salvd.cxx | |
parent | 45979047abbd9da7a29401f298e8ef9ab58ad337 (diff) |
loplugin:nullptr (automatic rewrite)
Change-Id: I05e89f9896170d4df3d1377549ea074f06b884a0
Diffstat (limited to 'vcl/unx/generic/gdi/salvd.cxx')
-rw-r--r-- | vcl/unx/generic/gdi/salvd.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/vcl/unx/generic/gdi/salvd.cxx b/vcl/unx/generic/gdi/salvd.cxx index f4bce82a0509..8aa87bfc8d46 100644 --- a/vcl/unx/generic/gdi/salvd.cxx +++ b/vcl/unx/generic/gdi/salvd.cxx @@ -78,7 +78,7 @@ void X11SalGraphics::Init( X11SalVirtualDevice *pDevice, SalColormap* pColormap, delete pOrigDeleteColormap; m_pVDev = pDevice; - m_pFrame = NULL; + m_pFrame = nullptr; bWindow_ = pDisplay->IsDisplay(); bVirDev_ = true; @@ -95,7 +95,7 @@ X11SalVirtualDevice::X11SalVirtualDevice(SalGraphics* pGraphics, long &nDX, long m_nXScreen(0), bGraphics_(false) { - SalColormap* pColormap = NULL; + SalColormap* pColormap = nullptr; bool bDeleteColormap = false; if( !nBitCount && pGraphics ) @@ -140,7 +140,7 @@ X11SalVirtualDevice::X11SalVirtualDevice(SalGraphics* pGraphics, long &nDX, long bExternPixmap_ = false; } - XRenderPictFormat* pXRenderFormat = pData ? static_cast<XRenderPictFormat*>(pData->pXRenderFormat) : NULL; + XRenderPictFormat* pXRenderFormat = pData ? static_cast<XRenderPictFormat*>(pData->pXRenderFormat) : nullptr; if( pXRenderFormat ) { pGraphics_->SetXRenderFormat( pXRenderFormat ); @@ -163,7 +163,7 @@ X11SalVirtualDevice::X11SalVirtualDevice(SalGraphics* pGraphics, long &nDX, long X11SalVirtualDevice::~X11SalVirtualDevice() { delete pGraphics_; - pGraphics_ = NULL; + pGraphics_ = nullptr; if( GetDrawable() && !bExternPixmap_ ) XFreePixmap( GetXDisplay(), GetDrawable() ); @@ -172,7 +172,7 @@ X11SalVirtualDevice::~X11SalVirtualDevice() SalGraphics* X11SalVirtualDevice::AcquireGraphics() { if( bGraphics_ ) - return NULL; + return nullptr; if( pGraphics_ ) bGraphics_ = true; |