notifyTests: "allocate" 2-wide arrays in stack
authorMarcus Fritzsch <marcus.fritzsch@xse.de>
Fri, 1 Aug 2014 06:57:46 +0000 (08:57 +0200)
committerNobuhiko Tanibata <NOBUHIKO_TANIBATA@denso.co.jp>
Tue, 12 Aug 2014 13:15:17 +0000 (22:15 +0900)
Signed-off-by: Marcus Fritzsch <marcus.fritzsch@xse.de>
ivi-layermanagement-api/test/ilm_control_notification_test.cpp

index 1aa36a3..493ee5a 100644 (file)
@@ -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();