fix build errror
authorkeonpyo.kong <keonpyo.kong@samsung.com>
Wed, 5 Dec 2012 01:31:38 +0000 (10:31 +0900)
committerkeonpyo.kong <keonpyo.kong@samsung.com>
Wed, 5 Dec 2012 01:31:38 +0000 (10:31 +0900)
Change-Id: I98308a2aa6a02051555ce48e3e35c73f8a1339ba

src/FShlQuickPanelFrame.cpp

index 1f0d89a..0e91d4b 100644 (file)
@@ -71,12 +71,18 @@ QuickPanelFrame::Construct(const Osp::Base::String& resourceId)
        result r =  _AccessController::CheckUserPrivilege(_PRV_NOTIFICATION);
        SysTryReturnResult(NID_LOC, r == E_SUCCESS, E_PRIVILEGE_DENIED, "The application does not have the privilege to call this method.");
 
-       _UiBuilder* pBuilder = _UiBuilder::GetInstance();
-       r = GetLastResult();
-       SysTryReturn(NID_UI_CTRL, pBuilder, r, r, "[%s] Propagating.", GetErrorMessage(r));
-
-       r = pBuilder->Parse(resourceId, this);
-
+       ClearLastResult();
+
+       // Parse UiBuilder XML file
+       _UiBuilder* pBuilder = new _UiBuilder();
+       if (pBuilder == null)
+       {
+               return E_OUT_OF_MEMORY;
+       }
+       pBuilder->Construct(resourceId, this);
+       r = pBuilder->Parse();
+
+       delete pBuilder;
        return r;
 }