2009-08-22 22:33 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbqt/hbqt_slots.cpp
! Fixed memorys leak in HbDbfModel::rowCount() and HbDbfModel::columnCount().
It was shown as "unreachable code" warning.
This commit is contained in:
@@ -17,6 +17,11 @@
|
||||
past entries belonging to author(s): Viktor Szakats.
|
||||
*/
|
||||
|
||||
2009-08-22 22:33 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
|
||||
* contrib/hbqt/hbqt_slots.cpp
|
||||
! Fixed memorys leak in HbDbfModel::rowCount() and HbDbfModel::columnCount().
|
||||
It was shown as "unreachable code" warning.
|
||||
|
||||
2009-08-22 22:28 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
|
||||
* bin/hb-mkimp.bat
|
||||
! Fixed warning LNK4093 in msvc lib command.
|
||||
|
||||
@@ -2017,20 +2017,26 @@ int HbDbfModel::rowCount( const QModelIndex & /*parent = QModelIndex()*/ ) const
|
||||
{
|
||||
PHB_ITEM p0 = hb_itemPutNI( NULL, HBQT_BRW_ROWCOUNT );
|
||||
PHB_ITEM ret = hb_vmEvalBlockV( block, 1, p0 );
|
||||
hb_itemRelease( p0 );
|
||||
|
||||
return hb_itemGetNI( ret );
|
||||
int result = hb_itemGetNI( ret );
|
||||
|
||||
hb_itemRelease( p0 );
|
||||
hb_itemRelease( ret );
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
int HbDbfModel::columnCount( const QModelIndex & /*parent = QModelIndex()*/ ) const
|
||||
{
|
||||
PHB_ITEM p0 = hb_itemPutNI( NULL, HBQT_BRW_COLCOUNT );
|
||||
PHB_ITEM ret = hb_vmEvalBlockV( block, 1, p0 );
|
||||
hb_itemRelease( p0 );
|
||||
|
||||
return hb_itemGetNI( ret );
|
||||
int result = hb_itemGetNI( ret );
|
||||
|
||||
hb_itemRelease( p0 );
|
||||
hb_itemRelease( ret );
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
QModelIndex HbDbfModel::index( int row, int column, const QModelIndex & parent ) const
|
||||
|
||||
Reference in New Issue
Block a user