summaryrefslogtreecommitdiff
path: root/vcl/unx/generic/app/saldisp.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/unx/generic/app/saldisp.cxx')
-rw-r--r--vcl/unx/generic/app/saldisp.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/unx/generic/app/saldisp.cxx b/vcl/unx/generic/app/saldisp.cxx
index d95e30bca6d7..b8e266cb9ef3 100644
--- a/vcl/unx/generic/app/saldisp.cxx
+++ b/vcl/unx/generic/app/saldisp.cxx
@@ -559,7 +559,7 @@ void SalDisplay::Init()
for( Cursor & aCsr : aPointerCache_ )
aCsr = None;
- mpFactory = (AttributeProvider*)NULL;
+ mpFactory = nullptr;
m_bXinerama = false;
int nDisplayScreens = ScreenCount( pDisp_ );
@@ -2354,7 +2354,7 @@ SalVisual::SalVisual()
SalVisual::SalVisual( const XVisualInfo* pXVI )
{
- *(XVisualInfo*)this = *pXVI;
+ *static_cast<XVisualInfo*>(this) = *pXVI;
if( GetClass() == TrueColor )
{
nRedShift_ = sal_Shift( red_mask );