1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-21 06:40:08 +02:00

Declare GetProjectFrame() as AUDACITY_DLL_API.

The mod-null project uses it so it is presumable intended to be part of the
external API.
This commit is contained in:
Henric Jungheim 2019-06-08 12:01:56 -07:00
parent acadd4b7fb
commit 7d38ef8ed5
2 changed files with 4 additions and 4 deletions

View File

@ -155,7 +155,7 @@ void AudacityProject::SetStatus(const wxString &msg)
} }
} }
wxFrame &GetProjectFrame( AudacityProject &project ) AUDACITY_DLL_API wxFrame &GetProjectFrame( AudacityProject &project )
{ {
auto ptr = project.GetFrame(); auto ptr = project.GetFrame();
if ( !ptr ) if ( !ptr )
@ -163,7 +163,7 @@ wxFrame &GetProjectFrame( AudacityProject &project )
return *ptr; return *ptr;
} }
const wxFrame &GetProjectFrame( const AudacityProject &project ) AUDACITY_DLL_API const wxFrame &GetProjectFrame( const AudacityProject &project )
{ {
auto ptr = project.GetFrame(); auto ptr = project.GetFrame();
if ( !ptr ) if ( !ptr )

View File

@ -152,8 +152,8 @@ class AUDACITY_DLL_API AudacityProject final
///\brief Get the top-level window associated with the project (as a wxFrame ///\brief Get the top-level window associated with the project (as a wxFrame
/// only, when you do not need to use the subclass ProjectWindow) /// only, when you do not need to use the subclass ProjectWindow)
wxFrame &GetProjectFrame( AudacityProject &project ); AUDACITY_DLL_API wxFrame &GetProjectFrame( AudacityProject &project );
const wxFrame &GetProjectFrame( const AudacityProject &project ); AUDACITY_DLL_API const wxFrame &GetProjectFrame( const AudacityProject &project );
///\brief Get a pointer to the window associated with a project, or null if ///\brief Get a pointer to the window associated with a project, or null if
/// the given pointer is null. /// the given pointer is null.