rename NS_INLINE

This commit is contained in:
relikd
2019-09-15 23:14:36 +02:00
parent 1c174cc31e
commit ad607bc22b
6 changed files with 41 additions and 39 deletions

View File

@@ -79,7 +79,7 @@
}
/// Label with smaller gray text, non-editable. @c 13px height.
NS_INLINE NSTextField* GrayLabel(NSString *text) {
static inline NSTextField* GrayLabel(NSString *text) {
return [[[NSView label:text] tiny] gray];
}

View File

@@ -55,7 +55,7 @@
}
/// Helper method to generate tab item with image, label, and controller.
NS_INLINE NSTabViewItem* TabItem(NSImageName imageName, NSString *text, Class class) {
static NSTabViewItem* TabItem(NSImageName imageName, NSString *text, Class class) {
NSTabViewItem *item = [NSTabViewItem tabViewItemWithViewController: [class new]];
item.image = [NSImage imageNamed:imageName];
item.label = text;