Make Mac-specific function conditional
If we want to have an override marker on this function, it needs to be conditional on Mac.
This commit is contained in:
parent
62235348d1
commit
ef0a5ff71c
|
@ -186,16 +186,20 @@ struct APP_SINGLE_TOP : public wxApp
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef __WXMAC__
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Function MacOpenFile
|
* Function MacOpenFile
|
||||||
* is specific to MacOSX (not used under Linux or Windows).
|
* is specific to MacOSX (not used under Linux or Windows).
|
||||||
* MacOSX requires it for file association.
|
* MacOSX requires it for file association.
|
||||||
* @see http://wiki.wxwidgets.org/WxMac-specific_topics
|
* @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 );
|
Pgm().MacOpenFile( aFileName );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
IMPLEMENT_APP( APP_SINGLE_TOP );
|
IMPLEMENT_APP( APP_SINGLE_TOP );
|
||||||
|
|
Loading…
Reference in New Issue