Re: [Lazarus] Add 'const' to func params

2019-04-30 Thread Bart via lazarus
On Tue, Apr 30, 2019 at 3:39 PM AlexeyT via lazarus
 wrote:

>
> lcl/clipbrd.pp
>
>  procedure SetAsHtml(Html: String);
>  procedure SetAsHtml(Html: String; const PlainText: String);

This would force us to make a copy of the HTML parameter, since it can
get modified in the procedure.
So, it makes no sense to me.

Bart


-- 
Bart
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] Add 'const' to func params

2019-04-30 Thread AlexeyT via lazarus

lcl/clipbrd.pp

    procedure SetAsHtml(Html: String);
    procedure SetAsHtml(Html: String; const PlainText: String);

--
Regards,
Alexey

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus