diff options
-rw-r--r-- | libreofficekit/source/gtk/lokdocview.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libreofficekit/source/gtk/lokdocview.cxx b/libreofficekit/source/gtk/lokdocview.cxx index c0f2130fad80..668d6dec77d9 100644 --- a/libreofficekit/source/gtk/lokdocview.cxx +++ b/libreofficekit/source/gtk/lokdocview.cxx @@ -337,9 +337,9 @@ static void lok_docview_class_init( gpointer ptr ) G_TYPE_BOOLEAN); } -static void lok_docview_init( GTypeInstance *, gpointer ptr ) +static void lok_docview_init( GTypeInstance* pInstance, gpointer ) { - LOKDocView* pDocView = static_cast<LOKDocView *>(ptr); + LOKDocView* pDocView = reinterpret_cast<LOKDocView *>(pInstance); // Gtk ScrolledWindow is apparently not fully initialised yet, we specifically // have to set the [hv]adjustment to prevent GTK assertions from firing, see // https://bugzilla.gnome.org/show_bug.cgi?id=438114 for more info. |