Fixed build warning.
authorKeuckdo Bang <keuckdo.bang@samsung.net>
Tue, 19 Mar 2013 11:20:41 +0000 (20:20 +0900)
committerKeuckdo Bang <keuckdo.bang@samsung.net>
Tue, 19 Mar 2013 11:20:41 +0000 (20:20 +0900)
Change-Id: I9b4fd0217717c64cc3c5730bab01f7827a0ae330

src/ui/FUi_Control.cpp

index 9ab4391..304e5c1 100755 (executable)
@@ -2891,8 +2891,6 @@ _Control::UpdateBoundsOfVisualElement(const FloatRectangle& controlBounds)
 result
 _Control::AdjustAbsoluteBounds(void)
 {
-       result r = E_SUCCESS;
-
        struct _Visitor
                : public Visitor
        {
@@ -2935,6 +2933,8 @@ _Control::AdjustAbsoluteBounds(void)
 
        _Visitor visitor(this);
        Accept(visitor);
+
+       return E_SUCCESS;
 }
 
 bool
@@ -3517,7 +3517,8 @@ _Control::SetClientBounds(const Rectangle& bounds)
        __clientBounds = _CoordinateSystemUtils::ConvertToFloat(bounds);
        __isSetClientBounds = true;
 
-       AdjustAbsoluteBounds();
+       result r = AdjustAbsoluteBounds();
+       SysTryReturn(NID_UI, r == E_SUCCESS, r,         r, "[%s] Propagating.", GetErrorMessage(r));
 
        SetUpdateLayoutState(true);
 
@@ -3535,7 +3536,8 @@ _Control::SetClientBounds(const FloatRectangle& bounds)
        __clientBounds = bounds;
        __isSetClientBounds = true;
 
-       AdjustAbsoluteBounds();
+       result r = AdjustAbsoluteBounds();
+       SysTryReturn(NID_UI, r == E_SUCCESS, r,         r, "[%s] Propagating.", GetErrorMessage(r));
 
        SetUpdateLayoutState(true);