diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 660bcfd599..e7569f1782 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -16,6 +16,12 @@ The license applies to all entries newer than 2009-04-28. */ +2011-07-17 11:21 UTC+0200 Viktor Szakats (harbour.01 syenar.hu) + * contrib/hbqt/qtgui/hbqt_init.cpp + * variables scopes + * formatting + ; TOFIX: s_PHB_ITEM_tobedeleted logic to be moved to hbqtcore + 2011-07-16 15:59 UTC+0200 Viktor Szakats (harbour.01 syenar.hu) * src/rtl/gtwvt/gtwvt.c * contrib/gtwvg/gtwvg.c diff --git a/harbour/contrib/hbqt/qtgui/hbqt_init.cpp b/harbour/contrib/hbqt/qtgui/hbqt_init.cpp index 74001f6645..1370b07518 100644 --- a/harbour/contrib/hbqt/qtgui/hbqt_init.cpp +++ b/harbour/contrib/hbqt/qtgui/hbqt_init.cpp @@ -628,7 +628,7 @@ QApplication * __hbqtgui_app( void ) void hbqt_addDeleteList( PHB_ITEM item ) { HB_TRACE( HB_TR_DEBUG, ( "-------------------------hbqt_addDeleteList # %d", s_PHB_ITEM_tobedeleted.size() ) ); - s_PHB_ITEM_tobedeleted << item ; + s_PHB_ITEM_tobedeleted << item; } static void hbqt_lib_init( void * cargo ) @@ -659,15 +659,13 @@ static void hbqt_lib_init( void * cargo ) static void hbqt_lib_exit( void * cargo ) { HB_SYMBOL_UNUSED( cargo ); - int i; - void * ptr; while( ! s_PHB_ITEM_tobedeleted.isEmpty() ) { - i = s_PHB_ITEM_tobedeleted.size() - 1; + int i = s_PHB_ITEM_tobedeleted.size() - 1; if( s_PHB_ITEM_tobedeleted.at( i ) != NULL ) { - ptr = (void *) s_PHB_ITEM_tobedeleted.at( i ); + void * ptr = ( void * ) s_PHB_ITEM_tobedeleted.at( i ); s_PHB_ITEM_tobedeleted.removeAt( i ); hb_itemRelease( ptr ); }