mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-21 22:12:58 +02:00
Stack-allocate where possible! ...
... Removed many unnecessary naked news and deletes.
This commit is contained in:
@@ -66,15 +66,15 @@ LyricsWindow::LyricsWindow(AudacityProject *parent):
|
||||
mProject = parent;
|
||||
|
||||
// loads either the XPM or the windows resource, depending on the platform
|
||||
#if !defined(__WXMAC__) && !defined(__WXX11__)
|
||||
wxIcon *ic;
|
||||
#ifdef __WXMSW__
|
||||
ic = new wxIcon(wxICON(AudacityLogo));
|
||||
#else
|
||||
ic = new wxIcon(wxICON(AudacityLogo48x48));
|
||||
#endif
|
||||
SetIcon(*ic);
|
||||
delete ic;
|
||||
#if !defined(__WXMAC__) && !defined(__WXX11__)
|
||||
{
|
||||
#ifdef __WXMSW__
|
||||
wxIcon ic{ wxICON(AudacityLogo) };
|
||||
#else
|
||||
wxIcon ic{wxICON(AudacityLogo48x48)};
|
||||
#endif
|
||||
SetIcon(ic);
|
||||
}
|
||||
#endif
|
||||
|
||||
wxPoint panelPos(0, 0);
|
||||
|
Reference in New Issue
Block a user