[Tizen] Fix build warnings 57/151057/2
authorhuiyu,eun <huiyu.eun@samsung.com>
Mon, 11 Sep 2017 08:21:31 +0000 (17:21 +0900)
committerdongsug song <dongsug.song@samsung.com>
Tue, 19 Sep 2017 13:27:38 +0000 (13:27 +0000)
fixed warnings - CS0109, CS0114, CS0162, CS0168, CS1572, CS1573, CS1574

Conflicts:
Tizen.NUI/src/internal/Registry.cs
Tizen.NUI/src/public/Layer.cs

Change-Id: Id489dfe4d282d67ed2a38bc6d77a280536bcd213
Signed-off-by: huiyu,eun <huiyu.eun@samsung.com>
15 files changed:
Tizen.NUI/src/internal/Builder.cs
Tizen.NUI/src/internal/Camera.cs
Tizen.NUI/src/internal/ConnectionTracker.cs
Tizen.NUI/src/internal/CustomActor.cs
Tizen.NUI/src/internal/GestureDetector.cs
Tizen.NUI/src/internal/LinearConstrainer.cs
Tizen.NUI/src/internal/PathConstrainer.cs
Tizen.NUI/src/internal/Registry.cs
Tizen.NUI/src/internal/RenderTask.cs
Tizen.NUI/src/public/BaseComponents/View.cs
Tizen.NUI/src/public/CustomViewRegistry.cs
Tizen.NUI/src/public/Layer.cs
Tizen.NUI/src/public/NUIConstants.cs
Tizen.NUI/src/public/Path.cs
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 a9bf8ce..d9e0ee0 100755 (executable)
@@ -53,7 +53,7 @@ namespace Tizen.NUI
         /// <summary>
         /// Removes 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 b2b769f..1002e87 100755 (executable)
@@ -1113,7 +1113,7 @@ namespace Tizen.NUI.BaseComponents
         /// <param name="handle">A 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 f967e63..46a3c93 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 65dc9b4..cc9dd25 100755 (executable)
@@ -159,7 +159,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();
@@ -171,7 +171,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 03739a7..2d1c05a 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 8b81394..495851b 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 e9f41b7..220424e 100755 (executable)
@@ -161,8 +161,10 @@ namespace Tizen.NUI
         /// <returns>True if the window accepts a 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>