From 80e0044b9bcd385007d229cacfba050efd63d269 Mon Sep 17 00:00:00 2001 From: Shinwoo Kim Date: Wed, 17 Nov 2021 20:38:34 +0900 Subject: [PATCH] [NUI][ATSPI] clean code we do not use variable name starts with "_". --- .../BaseComponents/ViewAccessibility.cs | 24 +++++++++---------- .../testcase/Controls/TSDialog.cs | 2 +- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/Tizen.NUI/src/public/BaseComponents/ViewAccessibility.cs b/src/Tizen.NUI/src/public/BaseComponents/ViewAccessibility.cs index 708da7e90..37e90dd24 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/ViewAccessibility.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/ViewAccessibility.cs @@ -628,18 +628,18 @@ namespace Tizen.NUI.BaseComponents [EditorBrowsable(EditorBrowsableState.Never)] protected virtual AccessibilityStates AccessibilityCalculateStates(ulong states) { - AccessibilityStates _states = (AccessibilityStates)states; - - FlagSetter(ref _states, AccessibilityStates.Highlightable, this.AccessibilityHighlightable); - FlagSetter(ref _states, AccessibilityStates.Focusable, this.Focusable); - FlagSetter(ref _states, AccessibilityStates.Focused, this.State == States.Focused); - FlagSetter(ref _states, AccessibilityStates.Highlighted, this.IsHighlighted); - FlagSetter(ref _states, AccessibilityStates.Enabled, this.State != States.Disabled); - FlagSetter(ref _states, AccessibilityStates.Sensitive, this.Sensitive); - FlagSetter(ref _states, AccessibilityStates.Visible, true); - FlagSetter(ref _states, AccessibilityStates.Defunct, !this.IsOnWindow); - - return _states; + AccessibilityStates accessibilityStates = (AccessibilityStates)states; + + FlagSetter(ref accessibilityStates, AccessibilityStates.Highlightable, this.AccessibilityHighlightable); + FlagSetter(ref accessibilityStates, AccessibilityStates.Focusable, this.Focusable); + FlagSetter(ref accessibilityStates, AccessibilityStates.Focused, this.State == States.Focused); + FlagSetter(ref accessibilityStates, AccessibilityStates.Highlighted, this.IsHighlighted); + FlagSetter(ref accessibilityStates, AccessibilityStates.Enabled, this.State != States.Disabled); + FlagSetter(ref accessibilityStates, AccessibilityStates.Sensitive, this.Sensitive); + FlagSetter(ref accessibilityStates, AccessibilityStates.Visible, true); + FlagSetter(ref accessibilityStates, AccessibilityStates.Defunct, !this.IsOnWindow); + + return accessibilityStates; } [EditorBrowsable(EditorBrowsableState.Never)] diff --git a/test/Tizen.NUI.Tests/Tizen.NUI.Components.Devel.Tests/testcase/Controls/TSDialog.cs b/test/Tizen.NUI.Tests/Tizen.NUI.Components.Devel.Tests/testcase/Controls/TSDialog.cs index 277351bd0..4421d9e78 100755 --- a/test/Tizen.NUI.Tests/Tizen.NUI.Components.Devel.Tests/testcase/Controls/TSDialog.cs +++ b/test/Tizen.NUI.Tests/Tizen.NUI.Components.Devel.Tests/testcase/Controls/TSDialog.cs @@ -28,7 +28,7 @@ namespace Tizen.NUI.Components.Devel.Tests public void MyAccessibilityCalculateStates() { - GetAccessibilityStates();//base.AccessibilityCalculateStates(); + GetAccessibilityStates(); } } -- 2.34.1