summaryrefslogtreecommitdiff
path: root/vcl/inc
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-01-19 15:10:10 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-01-20 09:06:54 +0100
commitfe9d002ef55e30aa3629f4e1951beb18ebb692b0 (patch)
tree1c72b3d97c34801d23ab1d9509aa56081e4d401f /vcl/inc
parentf6cfe99d22041061b8042cdab05e57180c0ab70a (diff)
Some more loplugin:cstylecast: vcl
Change-Id: I74d35630b9fcdaa97af0b1f1e6d1e5c72488964d
Diffstat (limited to 'vcl/inc')
-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: */