reduce scope of _imageRep from ivar to local to init

This commit is contained in:
Riccardo Mottola 2023-07-27 14:35:25 +02:00
parent f2b79365f4
commit 0b9924e094
2 changed files with 1 additions and 1 deletions

View file

@ -47,7 +47,6 @@ APPKIT_EXPORT_CLASS
BOOL _showsApplicationBadge;
NSString *_badgeLabel;
NSImage *_appIconImage;
NSImageRep *_imageRep;
NSImage *_dockTileImage;
}

View file

@ -46,6 +46,7 @@
self = [super init];
if (self != nil)
{
NSImageRep *_imageRep;
GSDisplayServer *server = GSCurrentServer();
NSSize size = [server iconSize];
NSRect rect = NSMakeRect(0, 0, size.width, size.height);