On Wed, 24 May 2023 14:16:17 GMT, Kevin Rushforth <k...@openjdk.org> wrote:

>> Lukasz Kostyra has updated the pull request incrementally with one 
>> additional commit since the last revision:
>> 
>>   startDrag: move autorelease calls for NSStrings until after init
>
> modules/javafx.graphics/src/main/native-glass/mac/GlassViewDelegate.m line 
> 977:
> 
>> 975:             // create an image with contents of URL
>> 976:             NSString *fileURL = [[NSString alloc] initWithData:[pbItem 
>> dataForType:NSPasteboardTypeFileURL] encoding:NSUTF8StringEncoding];
>> 977:             [fileURL autorelease];
> 
> Minor: You could do this in a single line, although it is correct as you have 
> it.
> 
> 
> NSString *fileURL = [[[NSString alloc] initWithData:[pbItem 
> dataForType:NSPasteboardTypeFileURL] encoding:NSUTF8StringEncoding] 
> autorelease];

I mostly separated it because I found it a bit cluttered and harder to read. I 
can combine these two though, no problem.

-------------

PR Review Comment: https://git.openjdk.org/jfx/pull/1089#discussion_r1204382927

Reply via email to