Use reference

This commit is contained in:
Kevin Sawicki 2017-02-28 12:54:51 -08:00
parent f297ba987e
commit ca29ec0101
2 changed files with 2 additions and 2 deletions

View file

@ -54,7 +54,7 @@
// Helpers to update touch bar items
- (void)updateButton:(NSCustomTouchBarItem*)item withOptions:(const mate::PersistentDictionary&)options;
- (void)updateLabel:(NSCustomTouchBarItem*)item withOptions:(const mate::PersistentDictionary&)options;
- (void)updateColorPicker:(NSColorPickerTouchBarItem*)item withOptions:(const mate::PersistentDictionary)options;
- (void)updateColorPicker:(NSColorPickerTouchBarItem*)item withOptions:(const mate::PersistentDictionary&)options;
- (void)updateSlider:(NSSliderTouchBarItem*)item withOptions:(const mate::PersistentDictionary&)options;
- (void)updatePopover:(NSPopoverTouchBarItem*)item withOptions:(const mate::PersistentDictionary&)options;

View file

@ -252,7 +252,7 @@ static NSTouchBarItemIdentifier SliderIdentifier = @"com.electron.touchbar.slide
}
- (void)updateColorPicker:(NSColorPickerTouchBarItem*)item
withOptions:(const mate::PersistentDictionary)options {
withOptions:(const mate::PersistentDictionary&)options {
std::string customizationLabel;
if (options.Get("customizationLabel", &customizationLabel)) {
item.customizationLabel = base::SysUTF8ToNSString(customizationLabel);