summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2023-05-17 10:19:21 +0200
committerStephan Bergmann <sbergman@redhat.com>2023-05-17 15:46:58 +0200
commita4ccde0b12faad14836de9582f6f9afad95eaa6d (patch)
tree1965c391d911803084b40d317dd9e251f753d218 /vcl
parent1d40c4253ece649882b312139e47b65bdff8ab5a (diff)
Silence loplugin:external and lopluign:unreffun in (WIP?) a11y.cxx for now
Change-Id: Iea207bca4fee57e8c7dd5d307ccd42efc0dd2542 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151866 Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com> Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/unx/gtk4/a11y.cxx4
-rw-r--r--vcl/unx/gtk4/a11y.hxx24
2 files changed, 26 insertions, 2 deletions
diff --git a/vcl/unx/gtk4/a11y.cxx b/vcl/unx/gtk4/a11y.cxx
index 09526114cae5..33f1a97ff594 100644
--- a/vcl/unx/gtk4/a11y.cxx
+++ b/vcl/unx/gtk4/a11y.cxx
@@ -14,6 +14,8 @@
#include <unx/gtk/gtkframe.hxx>
#include <gtk/gtk.h>
+#include "a11y.hxx"
+
#if GTK_CHECK_VERSION(4, 9, 0)
#define OOO_TYPE_FIXED (ooo_fixed_get_type())
@@ -156,8 +158,6 @@ static css::uno::Reference<css::accessibility::XAccessible> get_uno_accessible(G
return pWindow->GetAccessible();
}
-GType lo_accessible_get_type();
-
#define LO_TYPE_ACCESSIBLE (lo_accessible_get_type())
#define LO_ACCESSIBLE(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), LO_TYPE_ACCESSIBLE, LoAccessible))
// #define LO_IS_ACCESSIBLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LO_TYPE_ACCESSIBLE))
diff --git a/vcl/unx/gtk4/a11y.hxx b/vcl/unx/gtk4/a11y.hxx
new file mode 100644
index 000000000000..0ae854737bd6
--- /dev/null
+++ b/vcl/unx/gtk4/a11y.hxx
@@ -0,0 +1,24 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+
+#pragma once
+
+#include <gtk/gtk.h>
+
+//TODO: Silence various loplugin:external and lopluign:unreffun in (WIP?) a11y.cxx for now:
+struct LoAccessible;
+struct LoAccessibleClass;
+struct OOoFixed;
+struct OOoFixedClass;
+static inline gpointer lo_accessible_get_instance_private(LoAccessible*);
+GType lo_accessible_get_type();
+static inline gpointer ooo_fixed_get_instance_private(OOoFixed*);
+GtkWidget* ooo_fixed_new();
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */