Use const references for params
This commit is contained in:
parent
bea56bbdc8
commit
9c73c991d7
1 changed files with 2 additions and 2 deletions
|
@ -115,8 +115,8 @@ static NSString* const ImageScrubberItemIdentifier = @"scrubber.image.item";
|
||||||
|
|
||||||
- (void)refreshTouchBarItem:(NSTouchBar*)touchBar
|
- (void)refreshTouchBarItem:(NSTouchBar*)touchBar
|
||||||
id:(NSTouchBarItemIdentifier)identifier
|
id:(NSTouchBarItemIdentifier)identifier
|
||||||
withType:(std::string)item_type
|
withType:(const std::string&)item_type
|
||||||
withSettings:(mate::PersistentDictionary)settings {
|
withSettings:(const mate::PersistentDictionary&)settings {
|
||||||
NSTouchBarItem* item = [touchBar itemForIdentifier:identifier];
|
NSTouchBarItem* item = [touchBar itemForIdentifier:identifier];
|
||||||
if (!item) return;
|
if (!item) return;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue