Apache OpenOffice (AOO) Bugzilla – Issue 43592
64bit: Make help working
Last modified: 2006-05-01 10:54:00 UTC
Hi, the attached patch clarifies types in the following functions: sfx2/inc/sfxbasemodel.hxx: getSomething and sfx2/source/doc/objxtor.cxx:SfxObjectShell::CreateObject It is not correct solution (or is it?), because it is changing the prototype from sal_Int64 to sal_IntPtr, but at least it make help pages (with the exception of help pages with images) working on AMD64. mba: please have a look and provide correct solution ;-)
Created attachment 23062 [details] help (pages without images) works now!
Sorry, but this patch doesn't work. You can't change the return type of a method defined by an IDL interface. Does it work if you change the code in the following way: in objxtor.cxx: sal_Int64 nHandle = xObj->getSomething( aSeq ); if ( nHandle ) return (SfxObjectShell*) (sal_IntPtr) nHandle; in sfxbasemodel.cxx if ( aName == SvGlobalName( SO3_GLOBAL_CLASSID ) ) return (sal_Int64)(sal_IntPtr)(SvObject*)GetObjectShell(); else if ( aName == SvGlobalName( SFX_GLOBAL_CLASSID ) ) return (sal_Int64)(sal_IntPtr)(SfxObjectShell*)GetObjectShell(); sfxbasemodel.hxx stays unchanged now.
mba: works OK. Committed in ooo64bit02. Thanks!
Closing.