From 4934685f535e50cec59ce210d6341061b961ee3e Mon Sep 17 00:00:00 2001 From: Zhuo Lu Date: Mon, 20 Nov 2017 17:56:00 -0800 Subject: [PATCH] Declare with static --- atom/browser/ui/cocoa/atom_menu_controller.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/atom/browser/ui/cocoa/atom_menu_controller.mm b/atom/browser/ui/cocoa/atom_menu_controller.mm index 088609a28f8d..315838320d7f 100644 --- a/atom/browser/ui/cocoa/atom_menu_controller.mm +++ b/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