aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2019-01-07 16:17:39 +1100
committerNeil <nyamatongwe@gmail.com>2019-01-07 16:17:39 +1100
commit8a383b457e234ec810ea38d76e619f34c19bed22 (patch)
treea39f4c5fcf3515ea18babb344b61d8164dccdfb2
parent24b2acfddea20bbcdb6c714dcdc96389ab4f54b5 (diff)
downloadscintilla-mirror-8a383b457e234ec810ea38d76e619f34c19bed22.tar.gz
Backport: Stop variable shadowing. This makes the code easier to understand and improves
performance very slightly. Backport of changeset 7196:094210c79fd4.
-rw-r--r--gtk/ScintillaGTKAccessible.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/ScintillaGTKAccessible.cxx b/gtk/ScintillaGTKAccessible.cxx
index ffcba5608..84bf90c45 100644
--- a/gtk/ScintillaGTKAccessible.cxx
+++ b/gtk/ScintillaGTKAccessible.cxx
@@ -1128,7 +1128,7 @@ AtkObject *ScintillaGTKAccessible::WidgetGetAccessibleImpl(GtkWidget *widget, At
if (parent_atk_type == 0) {
AtkObject *parent_obj = GTK_WIDGET_CLASS(widget_parent_class)->get_accessible(widget);
if (parent_obj) {
- GType parent_atk_type = G_OBJECT_TYPE(parent_obj);
+ parent_atk_type = G_OBJECT_TYPE(parent_obj);
// Figure out whether accessibility is enabled by looking at the type of the accessible
// object which would be created for the parent type of ScintillaObject.