summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2008-10-06 10:44:06 +0000
committerVladimir Glazounov <vg@openoffice.org>2008-10-06 10:44:06 +0000
commit092a9e4eee1a8f6210327acd7041f1748cf76ac4 (patch)
treeb6a63aa63a935b3ea5f8a09213a1eb78c8ea3aac
parent25e72f2bd3f66483d369553b7a35d79d99af6f86 (diff)
#100000# fix for casting to pointer from integer of different size
-rw-r--r--fpicker/source/unx/gnome/SalGtkPicker.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/fpicker/source/unx/gnome/SalGtkPicker.cxx b/fpicker/source/unx/gnome/SalGtkPicker.cxx
index 3e5a437d95..71c9fab41a 100644
--- a/fpicker/source/unx/gnome/SalGtkPicker.cxx
+++ b/fpicker/source/unx/gnome/SalGtkPicker.cxx
@@ -148,7 +148,7 @@ RunDialog::RunDialog( GtkWidget *pDialog, uno::Reference< awt::XExtendedToolkit
}
}
- GdkDisplay *pDisplay = aWindowHandle.DisplayPointer ? gdk_x11_lookup_xdisplay((void*)aWindowHandle.DisplayPointer) : NULL;
+ GdkDisplay *pDisplay = aWindowHandle.DisplayPointer ? gdk_x11_lookup_xdisplay(reinterpret_cast<void*>(static_cast<sal_IntPtr>(aWindowHandle.DisplayPointer))) : NULL;
GdkWindow* pParent = pDisplay ? gdk_window_lookup_for_display(pDisplay, aWindowHandle.WindowHandle) : NULL;
if (!pParent && pDisplay)
pParent = mpCreatedParent = gdk_window_foreign_new_for_display( pDisplay, aWindowHandle.WindowHandle);