[NUI] Fix Svace issues (#2018)
authorSeoyeon2Kim <34738918+Seoyeon2Kim@users.noreply.github.com>
Wed, 16 Sep 2020 07:21:33 +0000 (16:21 +0900)
committerGitHub <noreply@github.com>
Wed, 16 Sep 2020 07:21:33 +0000 (16:21 +0900)
- To clarify null check, modify conditionals clearly like this
 : if (a != null)

Signed-off-by: Seoyeon Kim <seoyeon2.kim@samsung.com>
src/Tizen.NUI/src/public/BaseComponents/ViewInternal.cs
src/Tizen.NUI/src/public/FocusManager.cs
src/Tizen.NUI/src/public/XamlBinding/ContentPage.cs

index 73a469d..991c36e 100755 (executable)
@@ -1277,7 +1277,7 @@ namespace Tizen.NUI.BaseComponents
                 {
                     trans = Xaml.Extensions.LoadObject<Transition>(likelyResourcePath);
                 }
-                if (trans)
+                if (trans != null)
                 {
                     transDictionary.Add(trans.Name, trans);
                 }
index 6bc6d1f..33e146f 100755 (executable)
@@ -492,7 +492,7 @@ namespace Tizen.NUI
                 view = _preFocusChangeEventHandler(this, e);
             }
 
-            if (view)
+            if (view != null)
             {
                 return view.GetPtrfromView();
             }
index 60113ae..1e46aa5 100755 (executable)
@@ -152,7 +152,7 @@ namespace Tizen.NUI
             //Release your own unmanaged resources here.
             //You should not access any managed member here except static instance.
             //because the execution order of Finalizes is non-deterministic.
-            if(Root != null) 
+            if(Root != null)
             {
                 Root.Unparent();
                 Root.Dispose();
@@ -258,7 +258,7 @@ namespace Tizen.NUI
                 {
                     trans = Xaml.Extensions.LoadObject<Transition>(likelyResourcePath);
                 }
-                if (trans)
+                if (trans != null)
                 {
                     transDictionary?.Add(trans.Name, trans);
                 }