Fix build warning on macOS.
authorCarl Hetherington <cth@carlh.net>
Sun, 2 Feb 2025 11:57:56 +0000 (12:57 +0100)
committerCarl Hetherington <cth@carlh.net>
Sun, 2 Feb 2025 11:57:56 +0000 (12:57 +0100)
src/tools/dcpomatic_kdm.cc

index e65a637447fd6f187194d30d6b4f79820043aeb1..256627d0def948e2ada08911e629525fa27ffd22 100644 (file)
@@ -305,14 +305,10 @@ private:
 
        void setup_menu (wxMenuBar* m)
        {
-               auto file = new wxMenu;
-
 #ifndef DCPOMATIC_OSX
+               auto file = new wxMenu;
                file->Append (wxID_EXIT, _("&Quit"));
-#endif
-
-#ifndef DCPOMATIC_OSX
-               wxMenu* edit = new wxMenu;
+               auto edit = new wxMenu;
                edit->Append (wxID_PREFERENCES, _("&Preferences...\tCtrl-P"));
 #endif