summaryrefslogtreecommitdiff
path: root/automation/source/testtool/objtest.hxx
diff options
context:
space:
mode:
authorCaolán McNamara <cmc@openoffice.org>2010-01-22 14:26:33 +0000
committerCaolán McNamara <cmc@openoffice.org>2010-01-22 14:26:33 +0000
commite73551b494d3bae159075271e20189416a94f842 (patch)
treebdcf8bf7891a6b24fd6e105cf3e682291ea0d6b7 /automation/source/testtool/objtest.hxx
parent8261856e129451a0ca863de573e5a64fcb733e16 (diff)
cmcfixes71: #i108577#: fix automation strict aliasing warnings
Diffstat (limited to 'automation/source/testtool/objtest.hxx')
-rw-r--r--automation/source/testtool/objtest.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/automation/source/testtool/objtest.hxx b/automation/source/testtool/objtest.hxx
index 412a85b3b..fe56d355e 100644
--- a/automation/source/testtool/objtest.hxx
+++ b/automation/source/testtool/objtest.hxx
@@ -139,7 +139,7 @@ DBG_DTOR(ControlItem,0);
SV_DECL_PTRARR_SORT_DEL(CNames, ControlItem*, 50, 10)
#define MK_SON_ACCESS( ClassName )\
- BOOL SonInsert( const ClassName *pNewEntry ) { return pSons->C40_PTR_INSERT( ControlItem, (ControlItem*&)pNewEntry ); }\
+ BOOL SonInsert( const ClassName *pNewEntry ) { const ControlItem *pItem = pNewEntry; return pSons->Insert( pItem ); }\
BOOL SonSeek_Entry( const ClassName *pSearchEntry, USHORT *nRes = NULL) { return pSons->Seek_Entry( pSearchEntry, nRes ); }\
ClassName* SonGetObject( USHORT nNr ) { return (ClassName*)pSons->GetObject( nNr ); }