diff options
| author | Neil Hodgson <nyamatongwe@gmail.com> | 2017-06-07 16:23:06 +1000 |
|---|---|---|
| committer | Neil Hodgson <nyamatongwe@gmail.com> | 2017-06-07 16:23:06 +1000 |
| commit | 7401309e8c5e8caa1e8ce4d1872cb70030fc7f64 (patch) | |
| tree | b81231fd2812837015b5d74a10ccd5a7365ad326 /cocoa/InfoBar.mm | |
| parent | 74977b1699cdf34bf8146b65a6daf7c48b288ee5 (diff) | |
| download | scintilla-mirror-7401309e8c5e8caa1e8ce4d1872cb70030fc7f64.tar.gz | |
Using modern Objective C literals and indexing.
Diffstat (limited to 'cocoa/InfoBar.mm')
| -rw-r--r-- | cocoa/InfoBar.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cocoa/InfoBar.mm b/cocoa/InfoBar.mm index 6004e15cc..5ca010af8 100644 --- a/cocoa/InfoBar.mm +++ b/cocoa/InfoBar.mm @@ -166,7 +166,7 @@ static float BarFontSize = 10.0; [mZoomPopup addItemWithTitle: NSLocalizedStringFromTable(DefaultScaleMenuLabels[count], @"ZoomValues", nil)]; id currentItem = [mZoomPopup itemAtIndex: count]; if (DefaultScaleMenuFactors[count] != 0.0) - [currentItem setRepresentedObject: [NSNumber numberWithFloat: DefaultScaleMenuFactors[count]]]; + [currentItem setRepresentedObject: @(DefaultScaleMenuFactors[count])]; } [mZoomPopup selectItemAtIndex: DefaultScaleMenuSelectedItemIndex]; |
