If we want to have an override marker on this function, it needs to be
conditional on Mac.
---
common/single_top.cpp | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/common/single_top.cpp b/common/single_top.cpp
index 38ed55f89..c9bd80625 100644
--- a/common/single_top.cpp
+++ b/common/single_top.cpp
@@ -186,16 +186,20 @@ struct APP_SINGLE_TOP : public wxApp
return ret;
}
+#ifdef __WXMAC__
+
/**
* Function MacOpenFile
* is specific to MacOSX (not used under Linux or Windows).
* MacOSX requires it for file association.
* @see http://wiki.wxwidgets.org/WxMac-specific_topics
*/
- void MacOpenFile( const wxString& aFileName ) // overload wxApp virtual
+ void MacOpenFile( const wxString& aFileName ) override
{
Pgm().MacOpenFile( aFileName );
}
+
+#endif
};
IMPLEMENT_APP( APP_SINGLE_TOP );
--
2.11.0
_______________________________________________
Mailing list: https://launchpad.net/~kicad-developers
Post to : [email protected]
Unsubscribe : https://launchpad.net/~kicad-developers
More help : https://help.launchpad.net/ListHelp