[NUI] Fix build warnings 32/149032/2
authorhuiyu,eun <huiyu.eun@samsung.com>
Mon, 11 Sep 2017 08:21:31 +0000 (17:21 +0900)
committerhuiyu,eun <huiyu.eun@samsung.com>
Thu, 14 Sep 2017 06:34:07 +0000 (15:34 +0900)
fixed warnings - CS0109, CS0114, CS0162, CS0168, CS1572, CS1573, CS1574

Change-Id: Id489dfe4d282d67ed2a38bc6d77a280536bcd213
Signed-off-by: huiyu,eun <huiyu.eun@samsung.com>
15 files changed:
src/Tizen.NUI/src/internal/Builder.cs
src/Tizen.NUI/src/internal/Camera.cs
src/Tizen.NUI/src/internal/ConnectionTracker.cs
src/Tizen.NUI/src/internal/CustomActor.cs
src/Tizen.NUI/src/internal/GestureDetector.cs
src/Tizen.NUI/src/internal/LinearConstrainer.cs
src/Tizen.NUI/src/internal/PathConstrainer.cs
src/Tizen.NUI/src/internal/Registry.cs
src/Tizen.NUI/src/internal/RenderTask.cs
src/Tizen.NUI/src/public/BaseComponents/View.cs
src/Tizen.NUI/src/public/CustomViewRegistry.cs
src/Tizen.NUI/src/public/Layer.cs
src/Tizen.NUI/src/public/NUIConstants.cs
src/Tizen.NUI/src/public/Path.cs
src/Tizen.NUI/src/public/Window.cs

index aaa87be..76e6e86 100755 (executable)
@@ -141,6 +141,7 @@ namespace Tizen.NUI
             }
             catch (System.Exception e)
             {
+                NUILog.Error(e.Message);
                 throw new global::System.InvalidOperationException("Failed to parse " + fileName);
             }
         }
index f43ba7f..f91fcfb 100755 (executable)
@@ -179,7 +179,7 @@ namespace Tizen.NUI
             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
 
         }
-        public new static Camera DownCast(BaseHandle handle)
+        public static Camera DownCast(BaseHandle handle)
         {
             Camera ret = Registry.GetManagedBaseHandleFromNativePtr(handle) as Camera;
             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
index 165375f..21bab19 100755 (executable)
@@ -75,7 +75,7 @@ namespace Tizen.NUI
             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
         }
 
-        public virtual void SignalDisconnected(SlotObserver slotObserver, SWIGTYPE_p_Dali__CallbackBase callback)
+        public new virtual void SignalDisconnected(SlotObserver slotObserver, SWIGTYPE_p_Dali__CallbackBase callback)
         {
             NDalicPINVOKE.ConnectionTracker_SignalDisconnected(swigCPtr, SlotObserver.getCPtr(slotObserver), SWIGTYPE_p_Dali__CallbackBase.getCPtr(callback));
             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
index 6f7bf4d..15752d2 100755 (executable)
@@ -68,7 +68,7 @@ namespace Tizen.NUI
             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
         }
 
-        public new static CustomActor DownCast(BaseHandle handle)
+        public static CustomActor DownCast(BaseHandle handle)
         {
             CustomActor ret =  Registry.GetManagedBaseHandleFromNativePtr(handle) as CustomActor;
             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
index a9e8217..cd60b58 100755 (executable)
@@ -68,7 +68,7 @@ namespace Tizen.NUI
             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
         }
 
-        public new static GestureDetector DownCast(BaseHandle handle)
+        public static GestureDetector DownCast(BaseHandle handle)
         {
             GestureDetector ret =  Registry.GetManagedBaseHandleFromNativePtr(handle) as GestureDetector;
             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
index 5a21f4c..0ffad08 100755 (executable)
@@ -160,7 +160,7 @@ namespace Tizen.NUI
             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
 
         }
-        internal new static LinearConstrainer DownCast(BaseHandle handle)
+        internal static LinearConstrainer DownCast(BaseHandle handle)
         {
             LinearConstrainer ret =  Registry.GetManagedBaseHandleFromNativePtr(handle) as LinearConstrainer;
             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
index 98e2d9e..077720e 100755 (executable)
@@ -164,7 +164,7 @@ namespace Tizen.NUI
             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
 
         }
-        public new static PathConstrainer DownCast(BaseHandle handle)
+        public static PathConstrainer DownCast(BaseHandle handle)
         {
             PathConstrainer ret =  Registry.GetManagedBaseHandleFromNativePtr(handle) as PathConstrainer;
             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
index cf91e4e..7cfab4d 100755 (executable)
@@ -53,7 +53,7 @@ namespace Tizen.NUI
         /// <summary>
         /// Remove the this instance of BaseHandle (C# base class) and native part from the mapping table.
         /// </summary>
-        /// <param name="view"> The instance of BaseHandle (C# base class)</param>
+        /// <param name="baseHandle"> The instance of BaseHandle (C# base class)</param>
         internal static void Unregister(BaseHandle baseHandle)
         {
             RefObject refObj = baseHandle.GetObjectPtr();
index babb0ed..f7e3e83 100755 (executable)
@@ -254,7 +254,7 @@ namespace Tizen.NUI
             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
         }
 
-        public new static RenderTask DownCast(BaseHandle handle)
+        public static RenderTask DownCast(BaseHandle handle)
         {
             RenderTask ret =  Registry.GetManagedBaseHandleFromNativePtr(handle) as RenderTask;
             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
index cedb4d0..a68aeb2 100755 (executable)
@@ -828,7 +828,7 @@ namespace Tizen.NUI.BaseComponents
         /// <param name="handle">Handle to an object</param>
         /// <returns>A handle to a View or an uninitialized handle</returns>
         [Obsolete("Please do not use! this will be deprecated, instead please use as keyword.")]
-        public new static View DownCast(BaseHandle handle)
+        public static View DownCast(BaseHandle handle)
         {
             View ret =  Registry.GetManagedBaseHandleFromNativePtr(handle) as View;
             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
index 0b5cc21..99aeb91 100755 (executable)
@@ -223,7 +223,6 @@ namespace Tizen.NUI
             else
             {
                 throw new global::System.InvalidOperationException("C# View not registererd with ViewRegistry" + controlName);
-                return IntPtr.Zero;
             }
         }
 
index 17179f8..35f5fd2 100755 (executable)
@@ -101,7 +101,7 @@ namespace Tizen.NUI
 
 
         [Obsolete("Please do not use! this will be deprecated")]
-        public new static Layer DownCast(BaseHandle handle)
+        public static Layer DownCast(BaseHandle handle)
         {
             Layer ret =  Registry.GetManagedBaseHandleFromNativePtr(handle) as Layer;
             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
@@ -113,7 +113,7 @@ namespace Tizen.NUI
         /// </summary>
         /// <pre>This layer(the parent) has been initialized.</pre>
         /// <remarks>The actor itself is also considered in the search.</remarks>
-        /// <param name="child">The id of the child to find</param>
+        /// <param name="id">The id of the child to find</param>
         /// <returns> A handle to the view if found, or an empty handle if not. </returns>
         public View FindChildById(uint id)
         {
index 704ea52..2139050 100755 (executable)
@@ -100,7 +100,7 @@ namespace Tizen.NUI
         /// <summary>
         /// Size is to use the actor's natural size
         /// </summary>
-        /// <see cref="View.GetNaturalSize"/>
+        /// <see cref="ViewImpl.GetNaturalSize"/>
         UseNaturalSize,
         /// <summary>
         /// Size is to fill up to the actor's parent's bounds. Aspect ratio is not maintained.
index a13eb6a..bc5b9cb 100755 (executable)
@@ -86,7 +86,7 @@ namespace Tizen.NUI
 
 
         [Obsolete("Please do not use! this will be deprecated")]
-        public new static Path DownCast(BaseHandle handle)
+        public static Path DownCast(BaseHandle handle)
         {
             Path ret =  Registry.GetManagedBaseHandleFromNativePtr(handle) as Path;
             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
index 8c2b91f..965fcba 100755 (executable)
@@ -110,8 +110,10 @@ namespace Tizen.NUI
         /// <returns>True if the window accept focus, false otherwise</returns>
         public bool IsFocusAcceptable()
         {
-            return NDalicPINVOKE.IsFocusAcceptable(swigCPtr);
+            bool ret = NDalicPINVOKE.IsFocusAcceptable(swigCPtr);
             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+
+            return ret;
         }
 
         /// <summary>