Hi Pritpal,
This return a QPoint class in stack, you need return a new QPoint Class .-

hb_retptr( ( QPoint* ) new QPoint( hbqt_par_QWidget( 1 )->mapTo( 
hbqt_par_QWidget( 2 ),  *hbqt_par_QPoint( 3 ) ) ) );
        
but is necessary to control their destruction as in all classes.
Well, when you are finished start the corrections.

Xavi

Pritpal Bedi escribió:
Hello All

In QT builds you can see a lot of warnings like:

../../hbqt_qwidget.cpp:607: warning: taking address of temporary

which is the result of call like this:

/*
 * QPoint mapTo ( QWidget * parent, const QPoint & pos ) const
 */
HB_FUNC( QT_QWIDGET_MAPTO )
{
   hb_retptr( &( ( QPoint ) hbqt_par_QWidget( 1 )->mapTo( hbqt_par_QWidget(
2 ), *hbqt_par_QPoint( 3 ) ) ) );
}

&( ( QPoint )  though return a pointer but this warning still surfaces.

Anybody with a clue how it can be fixed?

Regards
Pritpal Bedi



_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to