From: Francisco Santos Date: Tue, 6 Dec 2016 10:56:22 +0000 (+0000) Subject: DaliException should be captured by reference. X-Git-Tag: dali_1.2.20~2^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F80%2F102780%2F3;p=platform%2Fcore%2Fuifw%2Fdali-core.git DaliException should be captured by reference. Change-Id: Ibab0e11ed2290f979c525b0f7c6d0dc16ce4425e --- diff --git a/automated-tests/src/dali/utc-Dali-RenderTask.cpp b/automated-tests/src/dali/utc-Dali-RenderTask.cpp index 456f5aa..69eb4e4 100644 --- a/automated-tests/src/dali/utc-Dali-RenderTask.cpp +++ b/automated-tests/src/dali/utc-Dali-RenderTask.cpp @@ -677,7 +677,7 @@ int UtcDaliRenderTaskGetSourceActorN(void) { Actor actor = task.GetSourceActor(); } - catch (Dali::DaliException(e)) + catch (Dali::DaliException& e) { DALI_TEST_PRINT_ASSERT( e ); DALI_TEST_ASSERT(e, "RenderTask handle is empty", TEST_LOCATION); @@ -876,7 +876,7 @@ int UtcDaliRenderTaskSetExclusiveN(void) { task.SetExclusive(true); } - catch (Dali::DaliException(e)) + catch (Dali::DaliException& e) { DALI_TEST_PRINT_ASSERT( e ); DALI_TEST_ASSERT(e, "RenderTask handle is empty", TEST_LOCATION); @@ -931,7 +931,7 @@ int UtcDaliRenderTaskIsExclusiveN(void) bool x = task.IsExclusive(); (void) x; } - catch (Dali::DaliException(e)) + catch (Dali::DaliException& e) { DALI_TEST_PRINT_ASSERT( e ); DALI_TEST_ASSERT(e, "RenderTask handle is empty", TEST_LOCATION); @@ -1053,7 +1053,7 @@ int UtcDaliRenderTaskGetCameraActorN(void) { Actor actor = task.GetCameraActor(); } - catch (Dali::DaliException(e)) + catch (Dali::DaliException& e) { DALI_TEST_PRINT_ASSERT( e ); DALI_TEST_ASSERT(e, "RenderTask handle is empty", TEST_LOCATION); @@ -1229,7 +1229,7 @@ int UtcDaliRenderTaskSetScreenToFrameBufferFunctionN(void) { task.SetScreenToFrameBufferFunction( TestScreenToFrameBufferFunction ); } - catch (Dali::DaliException(e)) + catch (Dali::DaliException& e) { DALI_TEST_PRINT_ASSERT( e ); DALI_TEST_ASSERT(e, "RenderTask handle is empty", TEST_LOCATION); @@ -1268,7 +1268,7 @@ int UtcDaliRenderTaskGetScreenToFrameBufferFunctionN(void) RenderTask::ScreenToFrameBufferFunction func = task.GetScreenToFrameBufferFunction(); (void) func; } - catch (Dali::DaliException(e)) + catch (Dali::DaliException& e) { DALI_TEST_PRINT_ASSERT( e ); DALI_TEST_ASSERT(e, "RenderTask handle is empty", TEST_LOCATION); @@ -1303,7 +1303,7 @@ int UtcDaliRenderTaskGetScreenToFrameBufferMappingActorN(void) Actor mappingActor; task.SetScreenToFrameBufferMappingActor(mappingActor); } - catch (Dali::DaliException(e)) + catch (Dali::DaliException& e) { DALI_TEST_PRINT_ASSERT( e ); DALI_TEST_ASSERT(e, "RenderTask handle is empty", TEST_LOCATION); @@ -1371,7 +1371,7 @@ int UtcDaliRenderTaskGetViewportN(void) Viewport viewport = task.GetViewport(); (void) viewport; } - catch (Dali::DaliException(e)) + catch (Dali::DaliException& e) { DALI_TEST_PRINT_ASSERT( e ); DALI_TEST_ASSERT(e, "RenderTask handle is empty", TEST_LOCATION); @@ -1416,7 +1416,7 @@ int UtcDaliRenderTaskSetViewportN(void) Viewport newViewport( 0, 0, stageSize.width * 0.5f, stageSize.height * 0.5f ); task.SetViewport( newViewport ); } - catch (Dali::DaliException(e)) + catch (Dali::DaliException& e) { DALI_TEST_PRINT_ASSERT( e ); DALI_TEST_ASSERT(e, "RenderTask handle is empty", TEST_LOCATION); @@ -1565,7 +1565,7 @@ int UtcDaliRenderTaskSetClearColorN(void) { task.SetClearColor( Vector4::ZERO ); } - catch (Dali::DaliException(e)) + catch (Dali::DaliException& e) { DALI_TEST_PRINT_ASSERT( e ); DALI_TEST_ASSERT(e, "RenderTask handle is empty", TEST_LOCATION); @@ -1597,7 +1597,7 @@ int UtcDaliRenderTaskGetClearColorN(void) Vector4 color = task.GetClearColor(); (void) color; } - catch (Dali::DaliException(e)) + catch (Dali::DaliException& e) { DALI_TEST_PRINT_ASSERT( e ); DALI_TEST_ASSERT(e, "RenderTask handle is empty", TEST_LOCATION); @@ -1635,7 +1635,7 @@ int UtcDaliRenderTaskSetClearEnabledN(void) { task.SetClearEnabled(true); } - catch (Dali::DaliException(e)) + catch (Dali::DaliException& e) { DALI_TEST_PRINT_ASSERT( e ); DALI_TEST_ASSERT(e, "RenderTask handle is empty", TEST_LOCATION); @@ -1669,7 +1669,7 @@ int UtcDaliRenderTaskGetClearEnabledN(void) bool x = task.GetClearEnabled(); (void) x; } - catch (Dali::DaliException(e)) + catch (Dali::DaliException& e) { DALI_TEST_PRINT_ASSERT( e ); DALI_TEST_ASSERT(e, "RenderTask handle is empty", TEST_LOCATION); @@ -1705,7 +1705,7 @@ int UtcDaliRenderTaskSetCullModeN(void) { task.SetCullMode( false ); } - catch (Dali::DaliException(e)) + catch (Dali::DaliException& e) { DALI_TEST_PRINT_ASSERT( e ); DALI_TEST_ASSERT(e, "RenderTask handle is empty", TEST_LOCATION); @@ -1737,7 +1737,7 @@ int UtcDaliRenderTaskGetCullModeN(void) bool x = task.GetCullMode(); (void) x; } - catch (Dali::DaliException(e)) + catch (Dali::DaliException& e) { DALI_TEST_PRINT_ASSERT( e ); DALI_TEST_ASSERT(e, "RenderTask handle is empty", TEST_LOCATION);