diff options
author | Marcus Fritzsch <marcus.fritzsch@xse.de> | 2014-08-01 08:57:46 +0200 |
---|---|---|
committer | Nobuhiko Tanibata <NOBUHIKO_TANIBATA@denso.co.jp> | 2014-08-12 22:15:17 +0900 |
commit | 40e149cadb1cbeb1d7824ce02109f9a1ac34beb1 (patch) | |
tree | 47f06b921b3fac732772c66974e75099ed88b674 | |
parent | 82f778b3475740a20af06ef7025dee25f1f9f067 (diff) | |
download | wayland-ivi-extension-40e149cadb1cbeb1d7824ce02109f9a1ac34beb1.tar.gz |
notifyTests: "allocate" 2-wide arrays in stack
Signed-off-by: Marcus Fritzsch <marcus.fritzsch@xse.de>
-rw-r--r-- | ivi-layermanagement-api/test/ilm_control_notification_test.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/ivi-layermanagement-api/test/ilm_control_notification_test.cpp b/ivi-layermanagement-api/test/ilm_control_notification_test.cpp index 1aa36a3..493ee5a 100644 --- a/ivi-layermanagement-api/test/ilm_control_notification_test.cpp +++ b/ivi-layermanagement-api/test/ilm_control_notification_test.cpp @@ -300,9 +300,7 @@ TEST_F(NotificationTest, NotifyOnLayerSetPosition) { ASSERT_EQ(ILM_SUCCESS,ilm_layerAddNotification(layer,&LayerCallbackFunction)); // change something - t_ilm_uint* pos = new t_ilm_uint[2]; - pos[0] = 7; - pos[1] = 2; + t_ilm_uint pos[] = { 7, 2 }; ilm_layerSetPosition(layer,pos); ilm_commitChanges(); @@ -321,9 +319,7 @@ TEST_F(NotificationTest, NotifyOnLayerSetDimension) { ASSERT_EQ(ILM_SUCCESS,ilm_layerAddNotification(layer,&LayerCallbackFunction)); // change something - t_ilm_uint* pos = new t_ilm_uint[2]; - pos[0] = 70; - pos[1] = 22; + t_ilm_uint pos[] = { 70, 22 }; ilm_layerSetDimension(layer,pos); ilm_commitChanges(); |