summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-04-07 08:14:23 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-04-07 20:10:24 +0200
commitf4e8244700adcbbf4f5c975a37520aa138ea7005 (patch)
tree18eed36e2cd37c182377c705e639eb736112bea6 /vcl
parent86cadd43f002959d6cfcb7b3e4066076f6d05997 (diff)
rtl::Static -> function local static
Change-Id: If8d2ef2066f52bc287457e03f0e57df11d5cfc85 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113714 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/unx/gtk3/a11y/gtk3atkutil.cxx9
1 files changed, 3 insertions, 6 deletions
diff --git a/vcl/unx/gtk3/a11y/gtk3atkutil.cxx b/vcl/unx/gtk3/a11y/gtk3atkutil.cxx
index d1f46a8ccef7..a2c8b46b470d 100644
--- a/vcl/unx/gtk3/a11y/gtk3atkutil.cxx
+++ b/vcl/unx/gtk3/a11y/gtk3atkutil.cxx
@@ -49,10 +49,7 @@ using namespace ::com::sun::star;
namespace
{
- struct theNextFocusObject :
- public rtl::Static< uno::WeakReference< accessibility::XAccessible >, theNextFocusObject>
- {
- };
+ uno::WeakReference< accessibility::XAccessible > theNextFocusObject;
}
static guint focus_notify_handler = 0;
@@ -68,7 +65,7 @@ atk_wrapper_focus_idle_handler (gpointer data)
focus_notify_handler = 0;
- uno::Reference< accessibility::XAccessible > xAccessible = theNextFocusObject::get();
+ uno::Reference< accessibility::XAccessible > xAccessible = theNextFocusObject;
if( xAccessible.get() == static_cast < accessibility::XAccessible * > (data) )
{
AtkObject *atk_obj = xAccessible.is() ? atk_object_wrapper_ref( xAccessible ) : nullptr;
@@ -123,7 +120,7 @@ atk_wrapper_focus_tracker_notify_when_idle( const uno::Reference< accessibility:
if( focus_notify_handler )
g_source_remove(focus_notify_handler);
- theNextFocusObject::get() = xAccessible;
+ theNextFocusObject = xAccessible;
focus_notify_handler = g_idle_add (atk_wrapper_focus_idle_handler, xAccessible.get());
}