[NUI] Fix some warnings in NUI.
authorhuayong.xu <huayong.xu@samsung.com>
Thu, 6 Mar 2025 10:24:28 +0000 (18:24 +0800)
committerWonsik Jung <sidein@samsung.com>
Wed, 12 Mar 2025 04:26:52 +0000 (13:26 +0900)
1) Return value is not checked.
2) Null parameter is not checked.

src/Tizen.NUI/src/devel/Binding/BindingExtensions.cs
src/Tizen.NUI/src/devel/Binding/BindingSession.cs
src/Tizen.NUI/src/public/BaseComponents/ImageView.cs
src/Tizen.NUI/src/public/BaseComponents/LottieAnimationView.cs
src/Tizen.NUI/src/public/BaseComponents/ViewInternal.cs
src/Tizen.NUI/src/public/WebView/WebView.cs

index 8764109b279b2a86698549d08928f0115ffd5032..c88ffe3d05d321306443a8f9f619b3ac53018dbd 100644 (file)
@@ -24,6 +24,7 @@ namespace Tizen.NUI.Binding
         public static TView SetBinding<T, TView>(this TView view, BindingSession<T> vm, Action<T, TView> set, string path) where TView : View
         {
             _ = view ?? throw new ArgumentNullException(nameof(view));
+            _ = vm ?? throw new ArgumentNullException(nameof(vm));
 
             var setter = new Action<T>(vm =>
             {
@@ -44,6 +45,7 @@ namespace Tizen.NUI.Binding
         /// <returns>The view.</returns>
         public static View SetBinding<T>(this View view, BindingSession<T> vm, Action<T> set, string path)
         {
+            _ = vm ?? throw new ArgumentNullException(nameof(vm));
             vm.AddBinding(set, path);
             return view;
         }
@@ -59,6 +61,7 @@ namespace Tizen.NUI.Binding
         /// <returns>The view.</returns>
         public static View SetBinding<TViewModel>(this View view, BindingSession<TViewModel> session, string targetPath, string srcPath)
         {
+            _ = session ?? throw new ArgumentNullException(nameof(session));
             var setter = new Action<TViewModel>(model =>
             {
                 if (view.Disposed)
@@ -85,6 +88,7 @@ namespace Tizen.NUI.Binding
         /// <returns>The view.</returns>
         public static TView SetBinding<TView, TViewModel, TProperty>(this TView view, BindingSession<TViewModel> session, BindingProperty<TView, TProperty> property, string path) where TView : View
         {
+            _ = session ?? throw new ArgumentNullException(nameof(session));
             var setter = new Action<TViewModel>(model =>
             {
                 if (view.Disposed)
@@ -124,6 +128,7 @@ namespace Tizen.NUI.Binding
         /// <returns>The view.</returns>
         public static View SetTwoWayBinding<TViewModel, TProperty>(this View view, BindingSession<TViewModel> session, TwoWayBindingProperty<View, TProperty> property, string path)
         {
+            _ = session ?? throw new ArgumentNullException(nameof(session));
             var regit = new Action<Action>(act =>
             {
                 property.AddObserver(view, act);
@@ -158,6 +163,7 @@ namespace Tizen.NUI.Binding
         /// <returns>The view.</returns>
         public static TView SetTwoWayBinding<TView, TViewModel, TProperty>(this TView view, BindingSession<TViewModel> session, TwoWayBindingProperty<TView, TProperty> property, string path) where TView : View
         {
+            _ = session ?? throw new ArgumentNullException(nameof(session));
             var regit = new Action<Action>(act =>
             {
                 property.AddObserver(view, act);
@@ -187,6 +193,7 @@ namespace Tizen.NUI.Binding
         /// <returns>The binding session.</returns>
         public static BindingSession<TViewModel> BindingSession<TViewModel>(this View view)
         {
+            _ = view ?? throw new ArgumentNullException(nameof(view));
             return view.GetAttached<BindingSession<TViewModel>>();
         }
 
@@ -200,6 +207,7 @@ namespace Tizen.NUI.Binding
         /// <returns>The view.</returns>
         public static T BindingSession<T, TViewModel>(this T view, BindingSession<TViewModel> session) where T : View
         {
+            _ = view ?? throw new ArgumentNullException(nameof(view));
             view.SetAttached(session);
             return view;
         }
index 4c4c4cf78c1e2563b6aed5c3939aa6a3ad24a7dc..c121aaff83f27a222891fd8894c08752e086e852 100644 (file)
@@ -2,7 +2,6 @@
 using System.Collections.Generic;
 using System.ComponentModel;
 using System.Reflection;
-using Tizen.NUI.BaseComponents;
 
 namespace Tizen.NUI.Binding
 {
@@ -74,6 +73,7 @@ namespace Tizen.NUI.Binding
         /// <param name="path">The path of the property to bind.</param>
         public void AddBinding(Action<TViewModel> setter, string path)
         {
+            _ = setter ?? throw new ArgumentNullException(nameof(setter));
             var action = new Action(() =>
             {
                 if (ViewModel != null)
@@ -103,6 +103,7 @@ namespace Tizen.NUI.Binding
         /// <param name="path">The path of the property to bind.</param>
         public void AddTwoWayBinding<T>(Action<Action> register, Action<Action> unregister, Action<TViewModel> setter, Func<T> getter, string path)
         {
+            _ = register ?? throw new ArgumentNullException(nameof(register));
             var action = new Action(() =>
             {
                 if (ViewModel != null)
index 58a5df7747cf1b201b3c24150120cab510041c82..060d24ae884ce206a9f26e3d2af8b6d77b7a3bc1 100755 (executable)
@@ -2146,7 +2146,7 @@ namespace Tizen.NUI.BaseComponents
                 UpdateImage(Visual.Property.MixColor, mixColor, false);
 
                 // Update property
-                int result = Interop.View.InternalUpdateVisualPropertyVector4(SwigCPtr, Property.IMAGE, Visual.Property.MixColor, Vector4.getCPtr(color));
+                _ = Interop.View.InternalUpdateVisualPropertyVector4(SwigCPtr, Property.IMAGE, Visual.Property.MixColor, Vector4.getCPtr(color));
             }
         }
 
@@ -2243,13 +2243,13 @@ namespace Tizen.NUI.BaseComponents
             {
                 if (backgroundExtraData.CornerRadius != null)
                 {
-                    Interop.View.InternalUpdateVisualPropertyVector4(this.SwigCPtr, ImageView.Property.IMAGE, Visual.Property.CornerRadius, Vector4.getCPtr(backgroundExtraData.CornerRadius));
+                    _ = Interop.View.InternalUpdateVisualPropertyVector4(this.SwigCPtr, ImageView.Property.IMAGE, Visual.Property.CornerRadius, Vector4.getCPtr(backgroundExtraData.CornerRadius));
                 }
                 if (backgroundExtraData.CornerSquareness != null)
                 {
-                    Interop.View.InternalUpdateVisualPropertyVector4(this.SwigCPtr, ImageView.Property.IMAGE, Visual.Property.CornerSquareness, Vector4.getCPtr(backgroundExtraData.CornerSquareness));
+                    _ = Interop.View.InternalUpdateVisualPropertyVector4(this.SwigCPtr, ImageView.Property.IMAGE, Visual.Property.CornerSquareness, Vector4.getCPtr(backgroundExtraData.CornerSquareness));
                 }
-                Interop.View.InternalUpdateVisualPropertyInt(this.SwigCPtr, ImageView.Property.IMAGE, Visual.Property.CornerRadiusPolicy, (int)backgroundExtraData.CornerRadiusPolicy);
+                _ = Interop.View.InternalUpdateVisualPropertyInt(this.SwigCPtr, ImageView.Property.IMAGE, Visual.Property.CornerRadiusPolicy, (int)backgroundExtraData.CornerRadiusPolicy);
             }
         }
 
@@ -2263,9 +2263,9 @@ namespace Tizen.NUI.BaseComponents
             if (backgroundExtraDataUpdatedFlag.HasFlag(BackgroundExtraDataUpdatedFlag.ContentsBorderline))
             {
                 // Update borderline properties to image by ActionUpdateProperty
-                Interop.View.InternalUpdateVisualPropertyFloat(this.SwigCPtr, ImageView.Property.IMAGE, Visual.Property.BorderlineWidth, backgroundExtraData.BorderlineWidth);
-                Interop.View.InternalUpdateVisualPropertyVector4(this.SwigCPtr, ImageView.Property.IMAGE, Visual.Property.BorderlineColor, Vector4.getCPtr(backgroundExtraData.BorderlineColor ?? Color.Black));
-                Interop.View.InternalUpdateVisualPropertyFloat(this.SwigCPtr, ImageView.Property.IMAGE, Visual.Property.BorderlineOffset, backgroundExtraData.BorderlineOffset);
+                _ = Interop.View.InternalUpdateVisualPropertyFloat(this.SwigCPtr, ImageView.Property.IMAGE, Visual.Property.BorderlineWidth, backgroundExtraData.BorderlineWidth);
+                _ = Interop.View.InternalUpdateVisualPropertyVector4(this.SwigCPtr, ImageView.Property.IMAGE, Visual.Property.BorderlineColor, Vector4.getCPtr(backgroundExtraData.BorderlineColor ?? Color.Black));
+                _ = Interop.View.InternalUpdateVisualPropertyFloat(this.SwigCPtr, ImageView.Property.IMAGE, Visual.Property.BorderlineOffset, backgroundExtraData.BorderlineOffset);
             }
         }
 
index 23d4fd625dfcce5a702d822434901607ff3a5e9b..07d9482f7913de02dda6c65bcd76d9f23959dc83 100755 (executable)
@@ -334,7 +334,7 @@ namespace Tizen.NUI.BaseComponents
                 NUILog.Debug($"< Get!");
 
                 int ret = 0;
-                Interop.View.InternalRetrievingVisualPropertyInt(this.SwigCPtr, ImageView.Property.IMAGE, ImageVisualProperty.PlayState, out ret);
+                _ = Interop.View.InternalRetrievingVisualPropertyInt(this.SwigCPtr, ImageView.Property.IMAGE, ImageVisualProperty.PlayState, out ret);
 
                 currentStates.playState = (PlayStateType)ret;
                 NUILog.Debug($"gotten play state={currentStates.playState} >");
@@ -355,7 +355,7 @@ namespace Tizen.NUI.BaseComponents
                 int ret = currentStates.totalFrame;
                 if (ret <= 0)
                 {
-                    Interop.View.InternalRetrievingVisualPropertyInt(this.SwigCPtr, ImageView.Property.IMAGE, ImageVisualProperty.TotalFrameNumber, out ret);
+                    _ = Interop.View.InternalRetrievingVisualPropertyInt(this.SwigCPtr, ImageView.Property.IMAGE, ImageVisualProperty.TotalFrameNumber, out ret);
 
                     currentStates.totalFrame = ret;
                     NUILog.Debug($"TotalFrameNumber get! ret={ret}");
@@ -427,7 +427,7 @@ namespace Tizen.NUI.BaseComponents
             {
                 int ret = 0;
 
-                int result = Interop.View.InternalRetrievingVisualPropertyInt(this.SwigCPtr, ImageView.Property.IMAGE, ImageVisualProperty.CurrentFrameNumber, out ret);
+                _ = Interop.View.InternalRetrievingVisualPropertyInt(this.SwigCPtr, ImageView.Property.IMAGE, ImageVisualProperty.CurrentFrameNumber, out ret);
 
                 NUILog.Debug($"CurrentFrameNumber get! val={ret}");
                 return ret;
@@ -476,7 +476,7 @@ namespace Tizen.NUI.BaseComponents
 
                     NUILog.Debug($"<[{GetId()}] SET loopMode={currentStates.loopMode}>");
 
-                    int result = Interop.View.InternalUpdateVisualPropertyInt(this.SwigCPtr, ImageView.Property.IMAGE, ImageVisualProperty.LoopingMode, (int)currentStates.loopMode);
+                    _ = Interop.View.InternalUpdateVisualPropertyInt(this.SwigCPtr, ImageView.Property.IMAGE, ImageVisualProperty.LoopingMode, (int)currentStates.loopMode);
                 }
             }
             get
@@ -543,7 +543,7 @@ namespace Tizen.NUI.BaseComponents
 
                     NUILog.Debug($"<[{GetId()}]SET currentStates.loopCount={currentStates.loopCount}>");
 
-                    int result = Interop.View.InternalUpdateVisualPropertyInt(this.SwigCPtr, ImageView.Property.IMAGE, ImageVisualProperty.LoopCount, currentStates.loopCount);
+                    _ = Interop.View.InternalUpdateVisualPropertyInt(this.SwigCPtr, ImageView.Property.IMAGE, ImageVisualProperty.LoopCount, currentStates.loopCount);
                 }
             }
             get
@@ -596,7 +596,7 @@ namespace Tizen.NUI.BaseComponents
 
                     NUILog.Debug($"<[{GetId()}]SET val={currentStates.stopEndAction}>");
 
-                    int result = Interop.View.InternalUpdateVisualPropertyInt(this.SwigCPtr, ImageView.Property.IMAGE, ImageVisualProperty.StopBehavior, (int)currentStates.stopEndAction);
+                    _ = Interop.View.InternalUpdateVisualPropertyInt(this.SwigCPtr, ImageView.Property.IMAGE, ImageVisualProperty.StopBehavior, (int)currentStates.stopEndAction);
                 }
             }
             get
@@ -652,7 +652,7 @@ namespace Tizen.NUI.BaseComponents
 
                     NUILog.Debug($"<[{GetId()}]SET currentStates.redrawInScalingDown={currentStates.redrawInScalingDown}>");
 
-                    int result = Interop.View.InternalUpdateVisualPropertyBool(this.SwigCPtr, ImageView.Property.IMAGE, ImageVisualProperty.RedrawInScalingDown, currentStates.redrawInScalingDown);
+                    _ = Interop.View.InternalUpdateVisualPropertyBool(this.SwigCPtr, ImageView.Property.IMAGE, ImageVisualProperty.RedrawInScalingDown, currentStates.redrawInScalingDown);
                 }
             }
             get
@@ -712,7 +712,7 @@ namespace Tizen.NUI.BaseComponents
 
                     NUILog.Debug($"<[{GetId()}]SET currentStates.EnableFrameCache={currentStates.enableFrameCache}>");
 
-                    int result = Interop.View.InternalUpdateVisualPropertyBool(this.SwigCPtr, ImageView.Property.IMAGE, ImageVisualProperty.EnableFrameCache, currentStates.enableFrameCache);
+                    _ = Interop.View.InternalUpdateVisualPropertyBool(this.SwigCPtr, ImageView.Property.IMAGE, ImageVisualProperty.EnableFrameCache, currentStates.enableFrameCache);
                 }
             }
             get
@@ -772,7 +772,7 @@ namespace Tizen.NUI.BaseComponents
 
                     NUILog.Debug($"<[{GetId()}]SET currentStates.NotifyAfterRasterization={currentStates.notifyAfterRasterization}>");
 
-                    int result = Interop.View.InternalUpdateVisualPropertyBool(this.SwigCPtr, ImageView.Property.IMAGE, ImageVisualProperty.NotifyAfterRasterization, currentStates.notifyAfterRasterization);
+                    _ = Interop.View.InternalUpdateVisualPropertyBool(this.SwigCPtr, ImageView.Property.IMAGE, ImageVisualProperty.NotifyAfterRasterization, currentStates.notifyAfterRasterization);
                 }
             }
             get
@@ -819,7 +819,7 @@ namespace Tizen.NUI.BaseComponents
 
                     NUILog.Debug($"<[{GetId()}]SET currentStates.FrameSpeedFactor={currentStates.frameSpeedFactor}>");
 
-                    Interop.View.InternalUpdateVisualPropertyFloat(this.SwigCPtr, ImageView.Property.IMAGE, ImageVisualProperty.FrameSpeedFactor, currentStates.frameSpeedFactor);
+                    _ = Interop.View.InternalUpdateVisualPropertyFloat(this.SwigCPtr, ImageView.Property.IMAGE, ImageVisualProperty.FrameSpeedFactor, currentStates.frameSpeedFactor);
                 }
             }
             get
@@ -851,7 +851,7 @@ namespace Tizen.NUI.BaseComponents
                 currentStates.mark1 = null;
                 currentStates.mark2 = null;
 
-                Interop.View.InternalUpdateVisualPropertyIntPair(this.SwigCPtr, ImageView.Property.IMAGE, ImageVisualProperty.PlayRange, currentStates.framePlayRangeMin, currentStates.framePlayRangeMax);
+                _ = Interop.View.InternalUpdateVisualPropertyIntPair(this.SwigCPtr, ImageView.Property.IMAGE, ImageVisualProperty.PlayRange, currentStates.framePlayRangeMin, currentStates.framePlayRangeMax);
 
                 NUILog.Debug($"  [{GetId()}] currentStates.min:({currentStates.framePlayRangeMin}, max:{currentStates.framePlayRangeMax})>");
             }
@@ -1039,11 +1039,11 @@ namespace Tizen.NUI.BaseComponents
 
                 if (string.IsNullOrEmpty(currentStates.mark2))
                 {
-                    Interop.View.InternalUpdateVisualPropertyString(this.SwigCPtr, ImageView.Property.IMAGE, ImageVisualProperty.PlayRange, currentStates.mark1);
+                    _ = Interop.View.InternalUpdateVisualPropertyString(this.SwigCPtr, ImageView.Property.IMAGE, ImageVisualProperty.PlayRange, currentStates.mark1);
                 }
                 else
                 {
-                    Interop.View.InternalUpdateVisualPropertyStringPair(this.SwigCPtr, ImageView.Property.IMAGE, ImageVisualProperty.PlayRange, currentStates.mark1, currentStates.mark2);
+                    _ = Interop.View.InternalUpdateVisualPropertyStringPair(this.SwigCPtr, ImageView.Property.IMAGE, ImageVisualProperty.PlayRange, currentStates.mark1, currentStates.mark2);
                 }
 
                 NUILog.Debug($"  [{GetId()}] currentStates.mark1:{currentStates.mark1}, mark2:{currentStates.mark2} >");
index d58483e20baf2c820d46a93105fa89944e558990..b243b024816e328d9612a97b2ad69a603f5b8060 100755 (executable)
@@ -490,7 +490,7 @@ namespace Tizen.NUI.BaseComponents
                 internalCurrentParentOrigin = new Position(0, 0, 0);
             }
 
-            Interop.ActorInternal.RetrieveCurrentPropertyVector3(SwigCPtr, View.Property.ParentOrigin, internalCurrentParentOrigin.SwigCPtr);
+            _ = Interop.ActorInternal.RetrieveCurrentPropertyVector3(SwigCPtr, View.Property.ParentOrigin, internalCurrentParentOrigin.SwigCPtr);
 
             if (NDalicPINVOKE.SWIGPendingException.Pending)
             {
@@ -514,7 +514,7 @@ namespace Tizen.NUI.BaseComponents
                 internalCurrentAnchorPoint = new Position(0, 0, 0);
             }
 
-            Interop.ActorInternal.RetrieveCurrentPropertyVector3(SwigCPtr, View.Property.AnchorPoint, internalCurrentAnchorPoint.SwigCPtr);
+            _ = Interop.ActorInternal.RetrieveCurrentPropertyVector3(SwigCPtr, View.Property.AnchorPoint, internalCurrentAnchorPoint.SwigCPtr);
 
             if (NDalicPINVOKE.SWIGPendingException.Pending)
             {
@@ -559,7 +559,7 @@ namespace Tizen.NUI.BaseComponents
                 internalTargetSize = new Vector3(0, 0, 0);
             }
 
-            Interop.ActorInternal.RetrieveTargetSize(SwigCPtr, internalTargetSize.SwigCPtr);
+            _ = Interop.ActorInternal.RetrieveTargetSize(SwigCPtr, internalTargetSize.SwigCPtr);
 
             if (NDalicPINVOKE.SWIGPendingException.Pending)
             {
@@ -576,7 +576,7 @@ namespace Tizen.NUI.BaseComponents
                 internalCurrentSize = new Size2D(0, 0);
             }
 
-            Interop.ActorInternal.RetrieveCurrentPropertyVector2ActualVector3(SwigCPtr, Property.SIZE, internalCurrentSize.SwigCPtr);
+            _ = Interop.ActorInternal.RetrieveCurrentPropertyVector2ActualVector3(SwigCPtr, Property.SIZE, internalCurrentSize.SwigCPtr);
 
             if (NDalicPINVOKE.SWIGPendingException.Pending)
             {
@@ -641,7 +641,7 @@ namespace Tizen.NUI.BaseComponents
                 internalCurrentPosition = new Position(0, 0, 0);
             }
 
-            Interop.ActorInternal.RetrieveCurrentPropertyVector3(SwigCPtr, Property.POSITION, internalCurrentPosition.SwigCPtr);
+            _ = Interop.ActorInternal.RetrieveCurrentPropertyVector3(SwigCPtr, Property.POSITION, internalCurrentPosition.SwigCPtr);
 
             if (NDalicPINVOKE.SWIGPendingException.Pending)
             {
@@ -657,7 +657,7 @@ namespace Tizen.NUI.BaseComponents
                 internalCurrentWorldPosition = new Vector3(0, 0, 0);
             }
 
-            Interop.ActorInternal.RetrieveCurrentPropertyVector3(SwigCPtr, View.Property.WorldPosition, internalCurrentWorldPosition.SwigCPtr);
+            _ = Interop.ActorInternal.RetrieveCurrentPropertyVector3(SwigCPtr, View.Property.WorldPosition, internalCurrentWorldPosition.SwigCPtr);
 
             if (NDalicPINVOKE.SWIGPendingException.Pending)
             {
@@ -786,7 +786,7 @@ namespace Tizen.NUI.BaseComponents
                 internalCurrentScale = new Vector3(0, 0, 0);
             }
 
-            Interop.ActorInternal.RetrieveCurrentPropertyVector3(SwigCPtr, View.Property.SCALE, internalCurrentScale.SwigCPtr);
+            _ = Interop.ActorInternal.RetrieveCurrentPropertyVector3(SwigCPtr, View.Property.SCALE, internalCurrentScale.SwigCPtr);
 
             if (NDalicPINVOKE.SWIGPendingException.Pending)
             {
@@ -803,7 +803,7 @@ namespace Tizen.NUI.BaseComponents
                 internalCurrentWorldScale = new Vector3(0, 0, 0);
             }
 
-            Interop.ActorInternal.RetrieveCurrentPropertyVector3(SwigCPtr, View.Property.WorldScale, internalCurrentWorldScale.SwigCPtr);
+            _ = Interop.ActorInternal.RetrieveCurrentPropertyVector3(SwigCPtr, View.Property.WorldScale, internalCurrentWorldScale.SwigCPtr);
 
             if (NDalicPINVOKE.SWIGPendingException.Pending)
             {
@@ -880,7 +880,7 @@ namespace Tizen.NUI.BaseComponents
                 internalCurrentColor = new Vector4(0, 0, 0, 0);
             }
 
-            Interop.ActorInternal.RetrieveCurrentPropertyVector4(SwigCPtr, Interop.ActorProperty.ColorGet(), internalCurrentColor.SwigCPtr);
+            _ = Interop.ActorInternal.RetrieveCurrentPropertyVector4(SwigCPtr, Interop.ActorProperty.ColorGet(), internalCurrentColor.SwigCPtr);
 
             if (NDalicPINVOKE.SWIGPendingException.Pending)
             {
@@ -904,7 +904,7 @@ namespace Tizen.NUI.BaseComponents
                 internalCurrentWorldColor = new Vector4(0, 0, 0, 0);
             }
 
-            Interop.ActorInternal.RetrieveCurrentPropertyVector4(SwigCPtr, Property.WorldColor, internalCurrentWorldColor.SwigCPtr);
+            _ = Interop.ActorInternal.RetrieveCurrentPropertyVector4(SwigCPtr, Property.WorldColor, internalCurrentWorldColor.SwigCPtr);
 
             if (NDalicPINVOKE.SWIGPendingException.Pending)
             {
@@ -1072,7 +1072,7 @@ namespace Tizen.NUI.BaseComponents
         internal bool IsBackgroundEmpty()
         {
             int visualType = (int)Visual.Type.Invalid;
-            Interop.View.InternalRetrievingVisualPropertyInt(this.SwigCPtr, Property.BACKGROUND, Visual.Property.Type, out visualType);
+            _ = Interop.View.InternalRetrievingVisualPropertyInt(this.SwigCPtr, Property.BACKGROUND, Visual.Property.Type, out visualType);
             return visualType == (int)Visual.Type.Invalid;
         }
 
@@ -1082,7 +1082,7 @@ namespace Tizen.NUI.BaseComponents
         internal bool IsShadowEmpty()
         {
             int visualType = (int)Visual.Type.Invalid;
-            Interop.View.InternalRetrievingVisualPropertyInt(this.SwigCPtr, Property.SHADOW, Visual.Property.Type, out visualType);
+            _ = Interop.View.InternalRetrievingVisualPropertyInt(this.SwigCPtr, Property.SHADOW, Visual.Property.Type, out visualType);
             return visualType == (int)Visual.Type.Invalid;
         }
 
@@ -1257,25 +1257,25 @@ namespace Tizen.NUI.BaseComponents
             {
                 if (backgroundExtraData.CornerRadius != null)
                 {
-                    Interop.View.InternalUpdateVisualPropertyVector4(this.SwigCPtr, View.Property.BACKGROUND, Visual.Property.CornerRadius, Vector4.getCPtr(backgroundExtraData.CornerRadius));
+                    _ = Interop.View.InternalUpdateVisualPropertyVector4(this.SwigCPtr, View.Property.BACKGROUND, Visual.Property.CornerRadius, Vector4.getCPtr(backgroundExtraData.CornerRadius));
                 }
                 if (backgroundExtraData.CornerSquareness != null)
                 {
-                    Interop.View.InternalUpdateVisualPropertyVector4(this.SwigCPtr, View.Property.BACKGROUND, Visual.Property.CornerSquareness, Vector4.getCPtr(backgroundExtraData.CornerSquareness));
+                    _ = Interop.View.InternalUpdateVisualPropertyVector4(this.SwigCPtr, View.Property.BACKGROUND, Visual.Property.CornerSquareness, Vector4.getCPtr(backgroundExtraData.CornerSquareness));
                 }
-                Interop.View.InternalUpdateVisualPropertyInt(this.SwigCPtr, View.Property.BACKGROUND, Visual.Property.CornerRadiusPolicy, (int)backgroundExtraData.CornerRadiusPolicy);
+                _ = Interop.View.InternalUpdateVisualPropertyInt(this.SwigCPtr, View.Property.BACKGROUND, Visual.Property.CornerRadiusPolicy, (int)backgroundExtraData.CornerRadiusPolicy);
             }
             if (backgroundExtraDataUpdatedFlag.HasFlag(BackgroundExtraDataUpdatedFlag.ShadowCornerRadius))
             {
                 if (backgroundExtraData.CornerRadius != null)
                 {
-                    Interop.View.InternalUpdateVisualPropertyVector4(this.SwigCPtr, View.Property.SHADOW, Visual.Property.CornerRadius, Vector4.getCPtr(backgroundExtraData.CornerRadius));
+                    _ = Interop.View.InternalUpdateVisualPropertyVector4(this.SwigCPtr, View.Property.SHADOW, Visual.Property.CornerRadius, Vector4.getCPtr(backgroundExtraData.CornerRadius));
                 }
                 if (backgroundExtraData.CornerSquareness != null)
                 {
-                    Interop.View.InternalUpdateVisualPropertyVector4(this.SwigCPtr, View.Property.SHADOW, Visual.Property.CornerSquareness, Vector4.getCPtr(backgroundExtraData.CornerSquareness));
+                    _ = Interop.View.InternalUpdateVisualPropertyVector4(this.SwigCPtr, View.Property.SHADOW, Visual.Property.CornerSquareness, Vector4.getCPtr(backgroundExtraData.CornerSquareness));
                 }
-                Interop.View.InternalUpdateVisualPropertyInt(this.SwigCPtr, View.Property.SHADOW, Visual.Property.CornerRadiusPolicy, (int)backgroundExtraData.CornerRadiusPolicy);
+                _ = Interop.View.InternalUpdateVisualPropertyInt(this.SwigCPtr, View.Property.SHADOW, Visual.Property.CornerRadiusPolicy, (int)backgroundExtraData.CornerRadiusPolicy);
             }
         }
 
@@ -1298,9 +1298,9 @@ namespace Tizen.NUI.BaseComponents
             // Update borderline properties to background by ActionUpdateProperty
             if (backgroundExtraDataUpdatedFlag.HasFlag(BackgroundExtraDataUpdatedFlag.BackgroundBorderline))
             {
-                Interop.View.InternalUpdateVisualPropertyFloat(this.SwigCPtr, View.Property.BACKGROUND, Visual.Property.BorderlineWidth, backgroundExtraData.BorderlineWidth);
-                Interop.View.InternalUpdateVisualPropertyVector4(this.SwigCPtr, View.Property.BACKGROUND, Visual.Property.BorderlineColor, Vector4.getCPtr(backgroundExtraData.BorderlineColor ?? Color.Black));
-                Interop.View.InternalUpdateVisualPropertyFloat(this.SwigCPtr, View.Property.BACKGROUND, Visual.Property.BorderlineOffset, backgroundExtraData.BorderlineOffset);
+                _ = Interop.View.InternalUpdateVisualPropertyFloat(this.SwigCPtr, View.Property.BACKGROUND, Visual.Property.BorderlineWidth, backgroundExtraData.BorderlineWidth);
+                _ = Interop.View.InternalUpdateVisualPropertyVector4(this.SwigCPtr, View.Property.BACKGROUND, Visual.Property.BorderlineColor, Vector4.getCPtr(backgroundExtraData.BorderlineColor ?? Color.Black));
+                _ = Interop.View.InternalUpdateVisualPropertyFloat(this.SwigCPtr, View.Property.BACKGROUND, Visual.Property.BorderlineOffset, backgroundExtraData.BorderlineOffset);
             }
         }
 
index 032e1bc7efe93dcef747834f717fb754d2eab6bc..295f6c25fa21511525c47f60b377bb374c4391fc 100755 (executable)
@@ -3025,13 +3025,13 @@ namespace Tizen.NUI.BaseComponents
             // Update corner radius properties to webView by ActionUpdateProperty
             if (backgroundExtraData.CornerRadius != null)
             {
-                Interop.View.InternalUpdateVisualPropertyVector4(this.SwigCPtr, WebView.Property.Url, Visual.Property.CornerRadius, Vector4.getCPtr(backgroundExtraData.CornerRadius));
+                _ = Interop.View.InternalUpdateVisualPropertyVector4(this.SwigCPtr, WebView.Property.Url, Visual.Property.CornerRadius, Vector4.getCPtr(backgroundExtraData.CornerRadius));
             }
             if (backgroundExtraData.CornerSquareness != null)
             {
-                Interop.View.InternalUpdateVisualPropertyVector4(this.SwigCPtr, WebView.Property.Url, Visual.Property.CornerSquareness, Vector4.getCPtr(backgroundExtraData.CornerSquareness));
+                _ = Interop.View.InternalUpdateVisualPropertyVector4(this.SwigCPtr, WebView.Property.Url, Visual.Property.CornerSquareness, Vector4.getCPtr(backgroundExtraData.CornerSquareness));
             }
-            Interop.View.InternalUpdateVisualPropertyInt(this.SwigCPtr, WebView.Property.Url, Visual.Property.CornerRadiusPolicy, (int)backgroundExtraData.CornerRadiusPolicy);
+            _ = Interop.View.InternalUpdateVisualPropertyInt(this.SwigCPtr, WebView.Property.Url, Visual.Property.CornerRadiusPolicy, (int)backgroundExtraData.CornerRadiusPolicy);
         }
 
         private void OnPageLoadStarted(string pageUrl)