Fix deprecated API usage
authorGongwook Lee <gongwook78.lee@samsung.com>
Thu, 9 May 2013 10:45:06 +0000 (19:45 +0900)
committerGongwook Lee <gongwook78.lee@samsung.com>
Thu, 9 May 2013 10:45:06 +0000 (19:45 +0900)
Change-Id: I829193cb4cbccd753a82897ccf52123809601432
Signed-off-by: Gongwook Lee <gongwook78.lee@samsung.com>
project/src/FaceDetectionForm.cpp
project/src/FaceRecognizer.cpp

index fc70a07..45cd108 100644 (file)
@@ -238,13 +238,13 @@ FaceDetectionForm::OnActionPerformed(const Tizen::Ui::Control& source, int actio
        case ID_BUTTON:
                if (__pPanel != null)
                {
-                       this->RemoveControl(*__pPanel);
+                       this->RemoveControl(__pPanel);
                }
                __pPanel = new (std::nothrow) ScrollPanel();
                TryReturn(__pPanel != null, , "Failed to create panel");
                r = __pPanel->Construct(Rectangle(0, __panelY, SCREEN_W, GetClientAreaBounds().height - __panelY));
                TryReturn(r == E_SUCCESS, , "Failed to construct panel");
-               AddControl(*__pPanel);
+               AddControl(__pPanel);
 
                DoRecognizing();
                break;
@@ -252,13 +252,13 @@ FaceDetectionForm::OnActionPerformed(const Tizen::Ui::Control& source, int actio
        case ID_BUTTON2:
                if (__pPanel != null)
                {
-                       this->RemoveControl(*__pPanel);
+                       this->RemoveControl(__pPanel);
                }
                __pPanel = new (std::nothrow) ScrollPanel();
                TryReturn(__pPanel != null, , "Failed to create panel");
                r = __pPanel->Construct(Rectangle(0, __panelY, SCREEN_W, GetClientAreaBounds().height - __panelY));
                TryReturn(r == E_SUCCESS, , "Failed to construct panel");
-               AddControl(*__pPanel);
+               AddControl(__pPanel);
 
                DoFaceSimilarity();
                break;
@@ -542,8 +542,8 @@ FaceDetectionForm::DoRecognizing()
                                delete pBackBitmap;
                        }
 
-                       __pPanel->AddControl(*pLabel);
-                       __pPanel->AddControl(*pLabe2);
+                       __pPanel->AddControl(pLabel);
+                       __pPanel->AddControl(pLabe2);
 
                        __pPanel->RequestRedraw(true);
 
index 5e8dd79..07f0b09 100644 (file)
@@ -58,7 +58,7 @@ FaceRecognizer::OnAppInitializing(AppRegistry& appRegistry)
        Header* pHeader = pForm->GetHeader();
        pHeader->SetTitleText(L"FACE RECOGNIZER");
 
-       r = GetAppFrame()->GetFrame()->AddControl(*pForm);
+       r = GetAppFrame()->GetFrame()->AddControl(pForm);
        TryReturn(r == E_SUCCESS, false, "Failed to attach FormMgr to the frame");
 
        pForm->Draw();