summaryrefslogtreecommitdiff
path: root/extensions/source/plugin/unx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-06-08 16:25:04 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-06-08 16:25:04 +0200
commitc278518819d2a84655d5ce52b16cf466ee33bcb1 (patch)
treed76e107eb1ad82257eadd29d45289231f74e5eba /extensions/source/plugin/unx
parentffec518e56027fd3aa64af61bfb60811ea78b26d (diff)
loplugin:cstylecast: deal with remaining pointer casts
Change-Id: I4c3c6bfce836ddc35ba6b277e240f5ed7e652e57
Diffstat (limited to 'extensions/source/plugin/unx')
-rw-r--r--extensions/source/plugin/unx/npnapi.cxx2
-rw-r--r--extensions/source/plugin/unx/npwrap.cxx4
2 files changed, 3 insertions, 3 deletions
diff --git a/extensions/source/plugin/unx/npnapi.cxx b/extensions/source/plugin/unx/npnapi.cxx
index c56f37b5c3f5..5d222af5368b 100644
--- a/extensions/source/plugin/unx/npnapi.cxx
+++ b/extensions/source/plugin/unx/npnapi.cxx
@@ -684,7 +684,7 @@ IMPL_LINK( PluginConnector, WorkOnNewMessageHdl, Mediator*, /*pMediator*/ )
if( aPluginFuncs.getvalue )
{
int bNeedsXEmbed = 0;
- NPError error = aPluginFuncs.getvalue( instance, NPPVpluginNeedsXEmbed, (void *)&bNeedsXEmbed );
+ NPError error = aPluginFuncs.getvalue( instance, NPPVpluginNeedsXEmbed, static_cast<void *>(&bNeedsXEmbed) );
if( error == NPERR_NO_ERROR )
pInst->bShouldUseXEmbed = (bNeedsXEmbed != 0);
SAL_INFO(
diff --git a/extensions/source/plugin/unx/npwrap.cxx b/extensions/source/plugin/unx/npwrap.cxx
index 3c7d9d7145fe..c9d429606eb6 100644
--- a/extensions/source/plugin/unx/npwrap.cxx
+++ b/extensions/source/plugin/unx/npwrap.cxx
@@ -134,7 +134,7 @@ Widget createSubWidget( char* /*pPluginText*/, Widget shell, Window aParentWindo
shell,
XtNwidth, 200,
XtNheight, 200,
- (char *)NULL );
+ nullptr );
XtRealizeWidget( shell );
XtRealizeWidget( newWidget );
@@ -166,7 +166,7 @@ void* CreateNewShell( void** pShellReturn, Window aParentWindow )
XtNwidth, 200,
XtNheight, 200,
XtNoverrideRedirect, True,
- (char *)NULL );
+ nullptr );
*pShellReturn = newShell;
char pText[1024];