Update RingQt - Better Code!
@@ -28662,9 +28662,9 @@ RING_FUNC(ring_QPainter_worldTransform)
pObject = (QPainter *) RING_API_GETCPOINTER(1,"QPainter");
{
QTransform *pValue ;
- pValue = (QTransform *) ring_state_malloc(((VM *) pPointer)->pRingState,sizeof(QTransform )) ;
+ pValue = new QTransform () ;
*pValue = pObject->worldTransform();
- RING_API_RETMANAGEDCPOINTER(pValue,"QTransform",ring_state_free);
+ RING_API_RETMANAGEDCPOINTER(pValue,"QTransform",ring_QTransform_freefunc);
}
}
@@ -112744,11 +112744,11 @@ RING_FUNC(ring_QLayout_closestAcceptableSize)
}
{
QSize *pValue ;
- pValue = (QSize *) ring_state_malloc(((VM *) pPointer)->pRingState,sizeof(QSize )) ;
+ pValue = new QSize () ;
*pValue = pObject->closestAcceptableSize((QWidget *) RING_API_GETCPOINTER(2,"QWidget"),* (QSize *) RING_API_GETCPOINTER(3,"QSize"));
if (RING_API_ISCPOINTERNOTASSIGNED(2))
ring_state_free(((VM *) pPointer)->pRingState,RING_API_GETCPOINTER(2,"QSize"));
- RING_API_RETMANAGEDCPOINTER(pValue,"QSize",ring_state_free);
+ RING_API_RETMANAGEDCPOINTER(pValue,"QSize",ring_QSize_freefunc);
}
}
@@ -114925,9 +114925,9 @@ RING_FUNC(ring_QListView_gridSize)
pObject = (QListView *) RING_API_GETCPOINTER(1,"QListView");
{
QSize *pValue ;
- pValue = (QSize *) ring_state_malloc(((VM *) pPointer)->pRingState,sizeof(QSize )) ;
+ pValue = new QSize () ;
*pValue = pObject->gridSize();
- RING_API_RETMANAGEDCPOINTER(pValue,"QSize",ring_state_free);
+ RING_API_RETMANAGEDCPOINTER(pValue,"QSize",ring_QSize_freefunc);
}
}
