summaryrefslogtreecommitdiff
path: root/vcl/unx/gtk3
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-04-25 15:09:53 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-04-28 08:32:56 +0200
commit3a36cf434fb4a967c9ea767cb7ac5f4da0502a0d (patch)
treeab1747ff3e977ad322cf05b68626879f2c68e6e0 /vcl/unx/gtk3
parent74ccd02eda2d6325a27266fd935aba29b3d75020 (diff)
loplugin:checkunusedparams in configmgr and vcl
Change-Id: I7226d01f38e6edaf3868d7267d9b02dbdbc9e5ba Reviewed-on: https://gerrit.libreoffice.org/36975 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/unx/gtk3')
-rw-r--r--vcl/unx/gtk3/gtk3gtkdata.cxx7
-rw-r--r--vcl/unx/gtk3/gtk3gtkinst.cxx29
2 files changed, 17 insertions, 19 deletions
diff --git a/vcl/unx/gtk3/gtk3gtkdata.cxx b/vcl/unx/gtk3/gtk3gtkdata.cxx
index 18327a484081..c5835e69f15a 100644
--- a/vcl/unx/gtk3/gtk3gtkdata.cxx
+++ b/vcl/unx/gtk3/gtk3gtkdata.cxx
@@ -61,11 +61,11 @@ using namespace vcl_sal;
***************************************************************/
extern "C" {
GdkFilterReturn call_filterGdkEvent( GdkXEvent* sys_event,
- GdkEvent* event,
+ GdkEvent* /*event*/,
gpointer data )
{
GtkSalDisplay *pDisplay = static_cast<GtkSalDisplay *>(data);
- return pDisplay->filterGdkEvent( sys_event, event );
+ return pDisplay->filterGdkEvent( sys_event );
}
}
@@ -116,8 +116,7 @@ void signalMonitorsChanged( GdkScreen* pScreen, gpointer data )
}
-GdkFilterReturn GtkSalDisplay::filterGdkEvent( GdkXEvent* sys_event,
- GdkEvent* )
+GdkFilterReturn GtkSalDisplay::filterGdkEvent( GdkXEvent* sys_event )
{
(void) this; // loplugin:staticmethods
(void) sys_event;
diff --git a/vcl/unx/gtk3/gtk3gtkinst.cxx b/vcl/unx/gtk3/gtk3gtkinst.cxx
index 8701127b3cb4..0f47ff54af5d 100644
--- a/vcl/unx/gtk3/gtk3gtkinst.cxx
+++ b/vcl/unx/gtk3/gtk3gtkinst.cxx
@@ -301,9 +301,9 @@ public:
virtual void SAL_CALL removeClipboardListener(
const Reference< css::datatransfer::clipboard::XClipboardListener >& listener ) override;
- void ClipboardGet(GtkClipboard *clipboard, GtkSelectionData *selection_data, guint info);
- void ClipboardClear(GtkClipboard *clipboard);
- void OwnerPossiblyChanged(GtkClipboard *clipboard, GdkEvent *event);
+ void ClipboardGet(GtkSelectionData *selection_data, guint info);
+ void ClipboardClear();
+ void OwnerPossiblyChanged(GtkClipboard *clipboard);
};
OUString VclGtkClipboard::getImplementationName()
@@ -334,8 +334,7 @@ Reference< css::datatransfer::XTransferable > VclGtkClipboard::getContents()
return m_aContents;
}
-void VclGtkClipboard::ClipboardGet(GtkClipboard* /*clipboard*/, GtkSelectionData *selection_data,
- guint info)
+void VclGtkClipboard::ClipboardGet(GtkSelectionData *selection_data, guint info)
{
if (!m_aContents.is())
return;
@@ -362,28 +361,28 @@ namespace
namespace
{
- void ClipboardGetFunc(GtkClipboard *clipboard, GtkSelectionData *selection_data,
+ void ClipboardGetFunc(GtkClipboard */*clipboard*/, GtkSelectionData *selection_data,
guint info,
gpointer user_data_or_owner)
{
VclGtkClipboard* pThis = static_cast<VclGtkClipboard*>(user_data_or_owner);
- pThis->ClipboardGet(clipboard, selection_data, info);
+ pThis->ClipboardGet(selection_data, info);
}
- void ClipboardClearFunc(GtkClipboard *clipboard, gpointer user_data_or_owner)
+ void ClipboardClearFunc(GtkClipboard */*clipboard*/, gpointer user_data_or_owner)
{
VclGtkClipboard* pThis = static_cast<VclGtkClipboard*>(user_data_or_owner);
- pThis->ClipboardClear(clipboard);
+ pThis->ClipboardClear();
}
- void handle_owner_change(GtkClipboard *clipboard, GdkEvent *event, gpointer user_data)
+ void handle_owner_change(GtkClipboard *clipboard, GdkEvent */*event*/, gpointer user_data)
{
VclGtkClipboard* pThis = static_cast<VclGtkClipboard*>(user_data);
- pThis->OwnerPossiblyChanged(clipboard, event);
+ pThis->OwnerPossiblyChanged(clipboard);
}
}
-void VclGtkClipboard::OwnerPossiblyChanged(GtkClipboard* clipboard, GdkEvent* /*event*/)
+void VclGtkClipboard::OwnerPossiblyChanged(GtkClipboard* clipboard)
{
if (!m_aContents.is())
return;
@@ -429,7 +428,7 @@ void VclGtkClipboard::OwnerPossiblyChanged(GtkClipboard* clipboard, GdkEvent* /*
}
}
-void VclGtkClipboard::ClipboardClear(GtkClipboard * /*clipboard*/)
+void VclGtkClipboard::ClipboardClear()
{
for (auto &a : m_aGtkTargets)
g_free(a.target);
@@ -541,7 +540,7 @@ VclGtkClipboard::~VclGtkClipboard()
if (!m_aGtkTargets.empty())
{
gtk_clipboard_clear(clipboard);
- ClipboardClear(clipboard);
+ ClipboardClear();
}
assert(m_aGtkTargets.empty());
}
@@ -604,7 +603,7 @@ void VclGtkClipboard::setContents(
if (!m_aGtkTargets.empty())
{
gtk_clipboard_clear(clipboard);
- ClipboardClear(clipboard);
+ ClipboardClear();
}
assert(m_aGtkTargets.empty());
if (m_aContents.is())