Use const references for params

This commit is contained in:
Kevin Sawicki 2017-04-03 10:57:57 -07:00
parent bea56bbdc8
commit 9c73c991d7

View file

@ -115,8 +115,8 @@ static NSString* const ImageScrubberItemIdentifier = @"scrubber.image.item";
- (void)refreshTouchBarItem:(NSTouchBar*)touchBar
id:(NSTouchBarItemIdentifier)identifier
withType:(std::string)item_type
withSettings:(mate::PersistentDictionary)settings {
withType:(const std::string&)item_type
withSettings:(const mate::PersistentDictionary&)settings {
NSTouchBarItem* item = [touchBar itemForIdentifier:identifier];
if (!item) return;