Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2017-12

new patch- Cocoa- SetScrollInfo funcs

5 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Dmitry Boyarintsev
to AlexeyT

On Sat, Dec 30, 2017 at 12:33 PM, AlexeyT via Lazarus <

Show quoted text 8 lines
wrote: +procedure NSScrollerGetScrollInfo(docSz, pageSz: CGFloat; rl: NSSCroller; Var ScrollInfo: TScrollInfo); Pls use "out" instead of "var", because with "var" fpc gives warnings about not inited parameter reasonable!

What line gives the warning?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20171230/c3b11b45/attachment.html>

Reply by email

AlexeyT
to AlexeyT: +procedure NSScrollerGetScrollInfo(docSz, pageSz: CGFloat; rl: NSSCroller; Var…
+procedure NSScrollerGetScrollInfo(docSz, pageSz: CGFloat; rl: NSSCroller; Var ScrollInfo: TScrollInfo);

2) maybe better name parameters like ADocSize, APageSize, ARoller, AScrollInfo like in LCL

Regards, Alexey -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20171230/e8a80c65/attachment.html>

Reply by email

Dmitry Boyarintsev
to AlexeyT

On Sat, Dec 30, 2017 at 12:52 PM, AlexeyT via Lazarus <

wrote: fpc usually gives it (for my code, when i use "var" params).

You should see the warning with source file name and line number when you recompile Cocoa LCL.
Can you please provide what the file name and line number is?

thanks,
Dmitry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20171230/18f96eef/attachment-0001.html>

Reply by email