Browse Source

Declare with static

Zhuo Lu 7 years ago
parent
commit
4934685f53
1 changed files with 2 additions and 2 deletions
  1. 2 2
      atom/browser/ui/cocoa/atom_menu_controller.mm

+ 2 - 2
atom/browser/ui/cocoa/atom_menu_controller.mm

@@ -56,10 +56,10 @@ Role kRolesMap[] = {
 }  // namespace
 
 // Menu item is located for ease of removing it from the parent owner
-NSMenuItem* recentDocumentsMenuItem_ = nil;
+static NSMenuItem* recentDocumentsMenuItem_ = nil;
 
 // TODO(sethlu): Doc & find a better naming
-NSMenu* swapMenu_ = nil;
+static NSMenu* swapMenu_ = nil;
 
 @implementation AtomMenuController