Browse Source

Take const reference

Kevin Sawicki 8 years ago
parent
commit
7f8e490839
1 changed files with 2 additions and 1 deletions
  1. 2 1
      atom/browser/native_window_mac.mm

+ 2 - 1
atom/browser/native_window_mac.mm

@@ -368,6 +368,7 @@ enum {
 - (void)enableWindowButtonsOffset;
 - (void)resetTouchBar:(const std::vector<mate::PersistentDictionary>&)settings;
 - (void)refreshTouchBarItem:(const std::string&)item_id;
+- (void)setEscapeTouchBarItem:(const mate::PersistentDictionary&)item;
 
 @end
 
@@ -410,7 +411,7 @@ enum {
     return nil;
 }
 
--(void)setEscapeTouchBarItem:(mate::PersistentDictionary)item {
+- (void)setEscapeTouchBarItem:(const mate::PersistentDictionary&)item {
   if (atom_touch_bar_ && self.touchBar)
     [atom_touch_bar_ setEscapeTouchBarItem:item forTouchBar:self.touchBar];
 }