diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-10-30 16:54:39 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-10-30 16:54:39 +0100 |
commit | 86585175a607982f0549ddad19851f1ebf52148c (patch) | |
tree | 7a074b1a350c7533bbf8cf6fa7694cdf5763fa6b /libreofficekit | |
parent | f5ab3e84dfd58722dc74c7369c1ad67237ca462e (diff) |
loplugin:staticmethods
Change-Id: I9ac908d0981734e4b2930a79f160ec0462127483
Diffstat (limited to 'libreofficekit')
-rw-r--r-- | libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx b/libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx index 72297aa4fb2f..509713505cae 100644 --- a/libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx +++ b/libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx @@ -74,7 +74,7 @@ public: GtkWidget* m_pDrawingArea; TiledCornerButton(); static gboolean draw(GtkWidget* pWidget, cairo_t* pCairo, gpointer pData); - gboolean drawImpl(GtkWidget* pWidget, cairo_t* pCairo); + static gboolean drawImpl(GtkWidget* pWidget, cairo_t* pCairo); }; /// Represents all the state that is specific to one GtkWindow of this app. @@ -264,9 +264,9 @@ TiledCornerButton::TiledCornerButton() g_signal_connect(m_pDrawingArea, "draw", G_CALLBACK(TiledCornerButton::draw), this); } -gboolean TiledCornerButton::draw(GtkWidget* pWidget, cairo_t* pCairo, gpointer pData) +gboolean TiledCornerButton::draw(GtkWidget* pWidget, cairo_t* pCairo, gpointer) { - return static_cast<TiledCornerButton*>(pData)->drawImpl(pWidget, pCairo); + return drawImpl(pWidget, pCairo); } gboolean TiledCornerButton::drawImpl(GtkWidget* /*pWidget*/, cairo_t* pCairo) |