To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=102742
                 Issue #|102742
                 Summary|sw: gcc44 warnings, returning a pointer that is itself
                        | const is meaningless
               Component|Word processor
                 Version|DEV300m50
                Platform|All
                     URL|
              OS/Version|Linux
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|PATCH
                Priority|P3
            Subcomponent|code
             Assigned to|cmc
             Reported by|cmc





------- Additional comments from [email protected] Sat Jun 13 15:40:42 +0000 
2009 -------
i.e.

static ::sw::mark::DdeBookmark* const lcl_FindDdeBookmark(...)

On primitive types making something return a X* const is meaningless, you cannot
enforce that the variable it is assigned to will not be allowed take another
value, i.e.

::sw::mark::DdeBookmark* foo = lcl_FindDdeBookmark()

is still perfectly possible.

const ::sw::mark::DdeBookmark* lcl_FindDdeBookmark() is a totally different
thing to ensure that the memory pointed to by foo cannot be modified and in
general is what was intended, which is why the warning exists. In this case
though, that's not possible. So just the simple attached patch is needed to
silence the warning

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to