diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 2955d6b5da..db23a6692d 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -16,6 +16,11 @@ The license applies to all entries newer than 2009-04-28. */ +2012-06-04 13:30 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com) + * contrib/hbqt/qscintilla/qth/QsciStyle.qth + * contrib/hbqt/qscintilla/qth/QsciStyledText.qth + ! Fixed: usage of hbqt_par_QString(). + 2012-06-04 13:27 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com) * contrib/gtwvg/wvgwing.c ! Fixed: (probably) 64 bit warning reported on the list. diff --git a/harbour/contrib/hbqt/qscintilla/qth/QsciStyle.qth b/harbour/contrib/hbqt/qscintilla/qth/QsciStyle.qth index ad07927e33..5397ae1c17 100644 --- a/harbour/contrib/hbqt/qscintilla/qth/QsciStyle.qth +++ b/harbour/contrib/hbqt/qscintilla/qth/QsciStyle.qth @@ -41,7 +41,9 @@ HB_FUNC( QT_QSCISTYLE ) } else if( hb_pcount() >= 5 ) { - __HB_RETPTRGC__( new QsciStyle( hb_parni( 1 ), hbqt_par_QString( 2 ), *hbqt_par_QColor( 3 ), *hbqt_par_QColor( 4 ), * hbqt_par_QFont( 5 ), HB_ISLOG( 6 ) ? hb_parl( 6 ) : false ) ); + void * pText01 = NULL; + __HB_RETPTRGC__( new QsciStyle( hb_parni( 1 ), hb_parstr_utf8( 2, &pText01, NULL ), *hbqt_par_QColor( 3 ), *hbqt_par_QColor( 4 ), * hbqt_par_QFont( 5 ), HB_ISLOG( 6 ) ? hb_parl( 6 ) : false ) ); + hb_strfree( pText01 ); } else { diff --git a/harbour/contrib/hbqt/qscintilla/qth/QsciStyledText.qth b/harbour/contrib/hbqt/qscintilla/qth/QsciStyledText.qth index 82c6909ef5..af9758f5f2 100644 --- a/harbour/contrib/hbqt/qscintilla/qth/QsciStyledText.qth +++ b/harbour/contrib/hbqt/qscintilla/qth/QsciStyledText.qth @@ -42,7 +42,9 @@ HB_FUNC( QT_QSCISTYLEDTEXT ) } else if( hb_pcount() == 2 && HB_ISCHAR( 1 ) && HB_ISOBJECT( 2 ) ) { - __HB_RETPTRGC__( new QsciStyledText( hbqt_par_QString( 1 ), *hbqt_par_QsciStyle( 2 ) ) ); + void * pText01 = NULL; + __HB_RETPTRGC__( new QsciStyledText( hb_parstr_utf8( 1, &pText01, NULL ), *hbqt_par_QsciStyle( 2 ) ) ); + hb_strfree( pText01 ); } }