[Lazarus] Help system questions

Rik van Kekem rik at graficalc.nl
Sun Sep 14 12:46:49 CEST 2014


On 13-09-2014 07:00, Reinier Olislagers wrote:
> 1. function TChmHelpViewer.ShowNode(Node: THelpNode; var ErrMsg: string
>    ): TShowHelpResult;
> in
> components\chmhelp\packages\idehelp\lazchmhelp.pas
> has
>    if Pos('file://', Node.URL) = 1 then
>    begin
>      Result := PassTheBuck(Node, ErrMsg);
>      Exit;
>    end;
>
> Is ignoring the results of the PassTheBuck (nice name ;) ) call on
> purpose or should it be changed to Exit(Result)?

Just above Exit the "Result" of the function is already set in Result so 
there is no need for the parameter in Exit (it's already set).
(Even the ErrMsg is given back via the var-parameter of ShowNode)

(You were probably really tired :))





More information about the Lazarus mailing list