From 2ad5375154fc91b99c4ecd2f00973db902ae1850 Mon Sep 17 00:00:00 2001 From: Sukwon Suh Date: Wed, 8 May 2013 14:03:27 +0900 Subject: [PATCH] remove warnings Change-Id: Iadf9dff1b1ed90f4ddb25fba09fb2603895ffb52 Signed-off-by: Sukwon Suh --- project/src/GlesCanvasTexture.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/project/src/GlesCanvasTexture.cpp b/project/src/GlesCanvasTexture.cpp index 18942fc..65cee3f 100644 --- a/project/src/GlesCanvasTexture.cpp +++ b/project/src/GlesCanvasTexture.cpp @@ -217,8 +217,8 @@ GlesCanvasTexture::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."); __pForm->AddTouchEventListener(*__pForm); @@ -235,7 +235,7 @@ GlesCanvasTexture::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; -- 2.7.4