Remove some gcc compiler warnings

This commit is contained in:
Fred Kiefer 2023-12-28 14:45:16 +01:00
parent 7fce63432a
commit 3a6dce02be
6 changed files with 85 additions and 86 deletions

View file

@ -1605,6 +1605,15 @@ static NSString *_placeholderItem = nil;
/* Creating Collection view Items */
- (NSNib *) _nibForClass: (Class)cls
{
NSString *clsName = NSStringFromClass(cls);
NSNib *nib = [[NSNib alloc] initWithNibNamed: clsName
bundle: [NSBundle bundleForClass: cls]];
AUTORELEASE(nib);
return nib;
}
- (NSCollectionViewItem *) makeItemWithIdentifier: (NSUserInterfaceItemIdentifier)identifier
forIndexPath: (NSIndexPath *)indexPath
{
@ -1703,15 +1712,6 @@ static NSString *_placeholderItem = nil;
/* Configuring the Collection view */
- (NSNib *) _nibForClass: (Class)cls
{
NSString *clsName = NSStringFromClass(cls);
NSNib *nib = [[NSNib alloc] initWithNibNamed: clsName
bundle: [NSBundle bundleForClass: cls]];
AUTORELEASE(nib);
return nib;
}
- (NSView *) backgroundView
{
return _backgroundView;