remove warnings
authorSukwon Suh <sukwon.suh@samsung.com>
Wed, 8 May 2013 05:07:01 +0000 (14:07 +0900)
committerSukwon Suh <sukwon.suh@samsung.com>
Wed, 8 May 2013 05:07:01 +0000 (14:07 +0900)
Change-Id: Ib788ad5802dfad4c5a52f95175cda51a701818f8
Signed-off-by: Sukwon Suh <sukwon.suh@samsung.com>
project/src/GlesVideoTexture.cpp

index c914a3f..7bd4ba0 100644 (file)
@@ -195,8 +195,8 @@ GlesVideoTexture::OnAppInitializing(AppRegistry& appRegistry)
        r = __pForm->Construct(FORM_STYLE_NORMAL);
        TryCatch(!IsFailed(r), delete __pForm, "__pForm->Construct(FORM_STYLE_NORMAL) failed.");
 
-       r = GetAppFrame()->GetFrame()->AddControl(*__pForm);
-       TryCatch(!IsFailed(r), delete __pForm, "GetAppFrame()->GetFrame()->AddControl(*__pForm) failed.");
+       r = GetAppFrame()->GetFrame()->AddControl(__pForm);
+       TryCatch(!IsFailed(r), delete __pForm, "GetAppFrame()->GetFrame()->AddControl(__pForm) failed.");
 
        TryCatch(InitEGL(), , "InitEGL() failed.");
 
@@ -211,7 +211,7 @@ GlesVideoTexture::OnAppInitializing(AppRegistry& appRegistry)
        TryCatch(!IsFailed(r), , "__pTimer->Construct(*this) failed.");
 
        // Comment the following statement to stop listen to the screen on/off events.
-       PowerManager::SetScreenEventListener(*this);
+       PowerManager::AddScreenEventListener(*this);
 
        return true;