diff --git a/harbour/ChangeLog b/harbour/ChangeLog index e1a710b790..5a7ed01229 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -17,6 +17,10 @@ past entries belonging to author(s): Viktor Szakats. */ +2009-12-16 02:10 UTC+0100 Viktor Szakats (harbour.01 syenar.hu) + * contrib/hbqt/hbqt_hbqmainwindow.cpp + * Minor formatting after latest changes. + 2009-12-16 01:53 UTC+0100 Viktor Szakats (harbour.01 syenar.hu) * contrib/rddsql/sddmy/mysqldd.c ! Fixed warning reported by linux/watcom. diff --git a/harbour/contrib/hbqt/hbqt_hbqmainwindow.cpp b/harbour/contrib/hbqt/hbqt_hbqmainwindow.cpp index fb3f93d9c8..b9637948e0 100644 --- a/harbour/contrib/hbqt/hbqt_hbqmainwindow.cpp +++ b/harbour/contrib/hbqt/hbqt_hbqmainwindow.cpp @@ -329,29 +329,6 @@ void HBQMainWindow::closeEvent( QCloseEvent * event ) #endif } -static void hbqt_hbqmainwindow_init( void * cargo ) -{ - HB_SYMBOL_UNUSED( cargo ); - -#if defined( _HBQT_MAINWINDOW_MUTEX ) - if( s_mutex == NULL ) - s_mutex = hb_threadMutexCreate(); -#endif -} - -static void hbqt_hbqmainwindow_exit( void * cargo ) -{ - HB_SYMBOL_UNUSED( cargo ); - -#if defined( _HBQT_MAINWINDOW_MUTEX ) - if( s_mutex != NULL ) - { - hb_itemRelease( s_mutex ); - s_mutex = NULL; - } -#endif -} - typedef struct { void * ph; @@ -424,6 +401,29 @@ HB_FUNC( QT_HBQMAINWINDOW ) HB_FUNC( HB_QT ) {;} +static void hbqt_hbqmainwindow_init( void * cargo ) +{ + HB_SYMBOL_UNUSED( cargo ); + +#if defined( _HBQT_MAINWINDOW_MUTEX ) + if( s_mutex == NULL ) + s_mutex = hb_threadMutexCreate(); +#endif +} + +static void hbqt_hbqmainwindow_exit( void * cargo ) +{ + HB_SYMBOL_UNUSED( cargo ); + +#if defined( _HBQT_MAINWINDOW_MUTEX ) + if( s_mutex != NULL ) + { + hb_itemRelease( s_mutex ); + s_mutex = NULL; + } +#endif +} + HB_CALL_ON_STARTUP_BEGIN( _hbqt_hbqmainwindow_initialize_ ) hb_vmAtInit( hbqt_hbqmainwindow_init, NULL ); hb_vmAtExit( hbqt_hbqmainwindow_exit, NULL );