Skip to content

Commit

Permalink
reduce scope of _imageRep from ivar to local to init
Browse files Browse the repository at this point in the history
  • Loading branch information
rmottola committed Jul 27, 2023
1 parent f2b7936 commit 0b9924e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion Headers/AppKit/NSDockTile.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ APPKIT_EXPORT_CLASS
BOOL _showsApplicationBadge;
NSString *_badgeLabel;
NSImage *_appIconImage;
NSImageRep *_imageRep;
NSImage *_dockTileImage;
}

Expand Down
1 change: 1 addition & 0 deletions Source/NSDockTile.m
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ - (instancetype) init
self = [super init];
if (self != nil)
{
NSImageRep *_imageRep;
GSDisplayServer *server = GSCurrentServer();
NSSize size = [server iconSize];
NSRect rect = NSMakeRect(0, 0, size.width, size.height);
Expand Down

1 comment on commit 0b9924e

@rmottola
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fredkiefer I forgot to switch branch before committing, so instead of making a PR I committed to master.
I hope you don't mind this small patch.

Please sign in to comment.