From: huiyu,eun Date: Mon, 11 Sep 2017 08:21:31 +0000 (+0900) Subject: [Tizen] Fix build warnings X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=334075b087b2207cdbb6103400c67c708946741f;p=platform%2Fcore%2Fcsapi%2Fnui.git [Tizen] Fix build warnings 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 --- diff --git a/Tizen.NUI/src/internal/Builder.cs b/Tizen.NUI/src/internal/Builder.cs index aaa87be..76e6e86 100755 --- a/Tizen.NUI/src/internal/Builder.cs +++ b/Tizen.NUI/src/internal/Builder.cs @@ -141,6 +141,7 @@ namespace Tizen.NUI } catch (System.Exception e) { + NUILog.Error(e.Message); throw new global::System.InvalidOperationException("Failed to parse " + fileName); } } diff --git a/Tizen.NUI/src/internal/Camera.cs b/Tizen.NUI/src/internal/Camera.cs index f43ba7f..f91fcfb 100755 --- a/Tizen.NUI/src/internal/Camera.cs +++ b/Tizen.NUI/src/internal/Camera.cs @@ -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(); diff --git a/Tizen.NUI/src/internal/ConnectionTracker.cs b/Tizen.NUI/src/internal/ConnectionTracker.cs index 165375f..21bab19 100755 --- a/Tizen.NUI/src/internal/ConnectionTracker.cs +++ b/Tizen.NUI/src/internal/ConnectionTracker.cs @@ -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(); diff --git a/Tizen.NUI/src/internal/CustomActor.cs b/Tizen.NUI/src/internal/CustomActor.cs index 6f7bf4d..15752d2 100755 --- a/Tizen.NUI/src/internal/CustomActor.cs +++ b/Tizen.NUI/src/internal/CustomActor.cs @@ -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(); diff --git a/Tizen.NUI/src/internal/GestureDetector.cs b/Tizen.NUI/src/internal/GestureDetector.cs index a9e8217..cd60b58 100755 --- a/Tizen.NUI/src/internal/GestureDetector.cs +++ b/Tizen.NUI/src/internal/GestureDetector.cs @@ -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(); diff --git a/Tizen.NUI/src/internal/LinearConstrainer.cs b/Tizen.NUI/src/internal/LinearConstrainer.cs index 5a21f4c..0ffad08 100755 --- a/Tizen.NUI/src/internal/LinearConstrainer.cs +++ b/Tizen.NUI/src/internal/LinearConstrainer.cs @@ -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(); diff --git a/Tizen.NUI/src/internal/PathConstrainer.cs b/Tizen.NUI/src/internal/PathConstrainer.cs index 98e2d9e..077720e 100755 --- a/Tizen.NUI/src/internal/PathConstrainer.cs +++ b/Tizen.NUI/src/internal/PathConstrainer.cs @@ -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(); diff --git a/Tizen.NUI/src/internal/Registry.cs b/Tizen.NUI/src/internal/Registry.cs index a9bf8ce..d9e0ee0 100755 --- a/Tizen.NUI/src/internal/Registry.cs +++ b/Tizen.NUI/src/internal/Registry.cs @@ -53,7 +53,7 @@ namespace Tizen.NUI /// /// Removes this instance of BaseHandle (C# base class) and native part from the mapping table. /// - /// The instance of BaseHandle (C# base class). + /// The instance of BaseHandle (C# base class) internal static void Unregister(BaseHandle baseHandle) { RefObject refObj = baseHandle.GetObjectPtr(); diff --git a/Tizen.NUI/src/internal/RenderTask.cs b/Tizen.NUI/src/internal/RenderTask.cs index babb0ed..f7e3e83 100755 --- a/Tizen.NUI/src/internal/RenderTask.cs +++ b/Tizen.NUI/src/internal/RenderTask.cs @@ -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(); diff --git a/Tizen.NUI/src/public/BaseComponents/View.cs b/Tizen.NUI/src/public/BaseComponents/View.cs index b2b769f..1002e87 100755 --- a/Tizen.NUI/src/public/BaseComponents/View.cs +++ b/Tizen.NUI/src/public/BaseComponents/View.cs @@ -1113,7 +1113,7 @@ namespace Tizen.NUI.BaseComponents /// A handle to an object. /// A handle to a view or an uninitialized handle. [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(); diff --git a/Tizen.NUI/src/public/CustomViewRegistry.cs b/Tizen.NUI/src/public/CustomViewRegistry.cs index f967e63..46a3c93 100755 --- a/Tizen.NUI/src/public/CustomViewRegistry.cs +++ b/Tizen.NUI/src/public/CustomViewRegistry.cs @@ -223,7 +223,6 @@ namespace Tizen.NUI else { throw new global::System.InvalidOperationException("C# View not registererd with ViewRegistry" + controlName); - return IntPtr.Zero; } } diff --git a/Tizen.NUI/src/public/Layer.cs b/Tizen.NUI/src/public/Layer.cs index 65dc9b4..cc9dd25 100755 --- a/Tizen.NUI/src/public/Layer.cs +++ b/Tizen.NUI/src/public/Layer.cs @@ -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 /// ///
This layer (the parent) has been initialized.
/// The actor itself is also considered in the search. - /// The ID of the child to find. + /// The id of the child to find /// A handle to the view if found, or an empty handle if not. public View FindChildById(uint id) { diff --git a/Tizen.NUI/src/public/NUIConstants.cs b/Tizen.NUI/src/public/NUIConstants.cs index 03739a7..2d1c05a 100755 --- a/Tizen.NUI/src/public/NUIConstants.cs +++ b/Tizen.NUI/src/public/NUIConstants.cs @@ -100,7 +100,7 @@ namespace Tizen.NUI /// /// Size is to use the actor's natural size. /// - /// + /// UseNaturalSize, /// /// Size is to fill up to the actor's parent's bounds. Aspect ratio is not maintained. diff --git a/Tizen.NUI/src/public/Path.cs b/Tizen.NUI/src/public/Path.cs index 8b81394..495851b 100755 --- a/Tizen.NUI/src/public/Path.cs +++ b/Tizen.NUI/src/public/Path.cs @@ -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(); diff --git a/Tizen.NUI/src/public/Window.cs b/Tizen.NUI/src/public/Window.cs index e9f41b7..220424e 100755 --- a/Tizen.NUI/src/public/Window.cs +++ b/Tizen.NUI/src/public/Window.cs @@ -161,8 +161,10 @@ namespace Tizen.NUI /// True if the window accepts a focus, false otherwise. public bool IsFocusAcceptable() { - return NDalicPINVOKE.IsFocusAcceptable(swigCPtr); + bool ret = NDalicPINVOKE.IsFocusAcceptable(swigCPtr); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + + return ret; } ///