Fixed Coding Idioms Violations
[platform/framework/native/uifw.git] / src / ui / controls / FUiCtrl_SearchBarImpl.cpp
index e1be7aa..d1b00d1 100644 (file)
@@ -132,6 +132,7 @@ _SearchBarImpl::CreateSearchBarImplN(SearchBar* pControl, const Rectangle& bound
        return pImpl;
 CATCH:
        delete pImpl;
+       SetLastResult(r);
        return null;
 }
 
@@ -163,6 +164,7 @@ _SearchBarImpl::CreateSearchBarImplFN(SearchBar* pControl, const FloatRectangle&
        return pImpl;
 CATCH:
        delete pImpl;
+       SetLastResult(r);
        return null;
 }
 
@@ -1480,7 +1482,7 @@ _SearchBarImpl::OnFocusGained(const Tizen::Ui::Control& source)
 
                        IFocusEventListener* pFocusEventListener = dynamic_cast <IFocusEventListener*>(pListener);
 
-                       if (pFocusEventListener != null )
+                       if (pFocusEventListener != null)
                        {
                                pFocusEventListener->OnFocusGained(GetPublic());
                        }
@@ -1510,7 +1512,7 @@ _SearchBarImpl::OnFocusLost(const Tizen::Ui::Control& source)
 
                        IFocusEventListener* pFocusEventListener = dynamic_cast <IFocusEventListener*>(pListener);
 
-                       if (pFocusEventListener != null )
+                       if (pFocusEventListener != null)
                        {
                                pFocusEventListener->OnFocusLost(GetPublic());
                        }
@@ -1535,7 +1537,7 @@ _SearchBarImpl::OnKeyPressed(const Tizen::Ui::Control& source, Tizen::Ui::KeyCod
 
                        IKeyEventListener* pKeyEventListener = dynamic_cast <IKeyEventListener*>(pListener);
 
-                       if (pKeyEventListener != null )
+                       if (pKeyEventListener != null)
                        {
                                pKeyEventListener->OnKeyPressed(GetPublic(), keyCode);
                        }
@@ -1560,7 +1562,7 @@ _SearchBarImpl::OnKeyReleased(const Tizen::Ui::Control& source, Tizen::Ui::KeyCo
 
                        IKeyEventListener* pKeyEventListener = dynamic_cast <IKeyEventListener*>(pListener);
 
-                       if (pKeyEventListener != null )
+                       if (pKeyEventListener != null)
                        {
                                pKeyEventListener->OnKeyReleased(GetPublic(), keyCode);
                        }
@@ -1585,7 +1587,7 @@ _SearchBarImpl::OnKeyLongPressed(const Tizen::Ui::Control& source, Tizen::Ui::Ke
 
                        IKeyEventListener* pKeyEventListener = dynamic_cast <IKeyEventListener*>(pListener);
 
-                       if (pKeyEventListener != null )
+                       if (pKeyEventListener != null)
                        {
                                pKeyEventListener->OnKeyLongPressed(GetPublic(), keyCode);
                        }