summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-09-26 13:15:08 +0200
committerNoel Grandin <noel@peralex.com>2014-09-29 12:50:35 +0200
commitc353caee1c86476d98cd483f963f63c4195975f4 (patch)
tree861ed6bf7d859115980928658a07469699020443 /extensions
parent07ca074e425ea381b9de1e7298be11678d3f6b38 (diff)
loplugin: cstylecast
Change-Id: I53b69a488c70769cbb841db519bc28fd211dc087
Diffstat (limited to 'extensions')
-rw-r--r--extensions/source/plugin/unx/npnapi.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/extensions/source/plugin/unx/npnapi.cxx b/extensions/source/plugin/unx/npnapi.cxx
index 69b39b2b9c16..3bdcd7a50ec6 100644
--- a/extensions/source/plugin/unx/npnapi.cxx
+++ b/extensions/source/plugin/unx/npnapi.cxx
@@ -727,7 +727,7 @@ IMPL_LINK( PluginConnector, WorkOnNewMessageHdl, Mediator*, /*pMediator*/ )
gtk_widget_show( pInst->pGtkWidget );
gtk_container_add( GTK_CONTAINER(pInst->pGtkWindow), pInst->pGtkWidget );
gtk_widget_show_all( pInst->pGtkWindow );
- pInst->window.window = (void *)(sal_uIntPtr)gtk_socket_get_id( GTK_SOCKET(pInst->pGtkWidget ) );
+ pInst->window.window = reinterpret_cast<void *>(gtk_socket_get_id( GTK_SOCKET(pInst->pGtkWidget ) ));
XSync( pAppDisplay, False );
@@ -764,11 +764,11 @@ IMPL_LINK( PluginConnector, WorkOnNewMessageHdl, Mediator*, /*pMediator*/ )
{
if( ! pInst->pWidget )
{
- pInst->pWidget = CreateNewShell( &(pInst->pShell), (Window)pWindow->window );
+ pInst->pWidget = CreateNewShell( &(pInst->pShell), reinterpret_cast<Window>(pWindow->window) );
}
// fill in NPWindow and NPCallbackStruct
- pInst->window.window = (void*)XtWindow( (Widget)pInst->pWidget );
+ pInst->window.window = reinterpret_cast<void*>(XtWindow( (Widget)pInst->pWidget ));
pInst->window.x = 0;
pInst->window.y = 0;
pInst->window.width = pWindow->width;