2012-06-13 12:34 UTC+0200 Viktor Szakats (vszakats syenar.net)

* contrib/hbqt/qtcore/hbqt_bind.cpp
    ! using core constant instead of arbirary buffer size
    % use HB_SIZEOFARRAY() instead of calculated explicit
      versions of above arbitrary sized buffers

  * contrib/hbqt/qtcore/hbqt_misc.prg
    * minor formatting
This commit is contained in:
Viktor Szakats
2012-06-13 10:36:05 +00:00
parent c3ae2c478d
commit 48a35c6263
3 changed files with 13 additions and 4 deletions

View File

@@ -16,6 +16,15 @@
The license applies to all entries newer than 2009-04-28.
*/
2012-06-13 12:34 UTC+0200 Viktor Szakats (vszakats syenar.net)
* contrib/hbqt/qtcore/hbqt_bind.cpp
! using core constant instead of arbirary buffer size
% use HB_SIZEOFARRAY() instead of calculated explicit
versions of above arbitrary sized buffers
* contrib/hbqt/qtcore/hbqt_misc.prg
* minor formatting
2012-06-13 11:41 UTC+0200 Viktor Szakats (vszakats syenar.net)
* contrib/hbqt/qtcore/hbqt_bind.cpp
* contrib/hbqt/qtcore/hbqt_hbqevents.cpp

View File

@@ -79,7 +79,7 @@ typedef struct _HBQT_BIND
PHBQT_DEL_FUNC pDelFunc;
int iFlags;
bool fDeleting;
char szClassName[ 100 ];
char szClassName[ HB_SYMBOL_NAME_LEN + 1 ];
struct _HBQT_BIND * next;
}
HBQT_BIND, * PHBQT_BIND;
@@ -171,7 +171,7 @@ PHB_ITEM hbqt_bindGetHbObject( PHB_ITEM pItem, void * qtObject, const char * szC
bind->pDelFunc = pDelFunc;
bind->iFlags = iFlags;
bind->fDeleting = false;
hb_strncpy( bind->szClassName, szClassName, 99 );
hb_strncpy( bind->szClassName, szClassName, HB_SIZEOFARRAY( bind->szClassName ) - 1 );
bind->next = s_hbqt_binds;
s_hbqt_binds = bind;
}
@@ -243,7 +243,7 @@ PHB_ITEM hbqt_bindSetHbObject( PHB_ITEM pItem, void * qtObject, const char * szC
bind->pDelFunc = pDelFunc;
bind->iFlags = iFlags;
bind->fDeleting = false;
hb_strncpy( bind->szClassName, szClassName, 99 );
hb_strncpy( bind->szClassName, szClassName, HB_SIZEOFARRAY( bind->szClassName ) - 1 );
bind->next = s_hbqt_binds;
s_hbqt_binds = bind;

View File

@@ -85,7 +85,7 @@ CREATE CLASS HbQtObjectHandler
METHOD HbQtObjectHandler:setSlots()
IF empty( ::__Slots )
::__Slots := {=>}
::__Slots := { => }
hb_hDefault( ::__Slots, {} )
ENDIF