Issue 43592 - 64bit: Make help working
Summary: 64bit: Make help working
Status: CLOSED FIXED
Alias: None
Product: porting
Classification: Code
Component: code (show other issues)
Version: current
Hardware: All All
: P3 Trivial (vote)
Target Milestone: OOo 2.0
Assignee: pavel
QA Contact: issues@porting
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-26 17:49 UTC by pavel
Modified: 2006-05-01 10:54 UTC (History)
4 users (show)

See Also:
Issue Type: PATCH
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
help (pages without images) works now! (3.07 KB, patch)
2005-02-26 17:50 UTC, pavel
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this issue.
Description pavel 2005-02-26 17:49:02 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 ;-)
Comment 1 pavel 2005-02-26 17:50:10 UTC
Created attachment 23062 [details]
help (pages without images) works now!
Comment 2 Mathias_Bauer 2005-02-28 09:29:16 UTC
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.
Comment 3 pavel 2005-03-05 12:15:03 UTC
mba: works OK.

Committed in ooo64bit02.

Thanks!
Comment 4 pavel 2006-05-01 10:54:00 UTC
Closing.