summaryrefslogtreecommitdiff
path: root/vcl/inc/unx/gtk/gtkdata.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/inc/unx/gtk/gtkdata.hxx')
-rw-r--r--vcl/inc/unx/gtk/gtkdata.hxx10
1 files changed, 6 insertions, 4 deletions
diff --git a/vcl/inc/unx/gtk/gtkdata.hxx b/vcl/inc/unx/gtk/gtkdata.hxx
index 235c599ad8da..e890580b6544 100644
--- a/vcl/inc/unx/gtk/gtkdata.hxx
+++ b/vcl/inc/unx/gtk/gtkdata.hxx
@@ -119,10 +119,7 @@ public:
virtual void ErrorTrapPush() SAL_OVERRIDE;
virtual bool ErrorTrapPop( bool bIgnoreError ) SAL_OVERRIDE;
- inline GtkSalDisplay *GetGtkDisplay() const
- {
- return (GtkSalDisplay *)GetDisplay();
- }
+ inline GtkSalDisplay *GetGtkDisplay() const;
};
class GtkSalFrame;
@@ -193,6 +190,11 @@ inline GdkDisplay *GtkData::GetGdkDisplay()
return GetGtkDisplay()->GetGdkDisplay();
}
+GtkSalDisplay *GtkData::GetGtkDisplay() const
+{
+ return static_cast<GtkSalDisplay *>(GetDisplay());
+}
+
#endif // INCLUDED_VCL_INC_UNX_GTK_GTKDATA_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */