[Lazarus] Add 'const' to func params

Bart bartjunk64 at gmail.com
Tue Apr 30 19:23:33 CEST 2019


On Tue, Apr 30, 2019 at 3:39 PM AlexeyT via lazarus
<lazarus at lists.lazarus-ide.org> 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


More information about the lazarus mailing list