mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-23 17:30:17 +01:00
Stack-allocate where possible! ...
... Removed many unnecessary naked news and deletes.
This commit is contained in:
@@ -156,9 +156,9 @@ void HelpSystem::ShowHtmlText(wxWindow *pParent,
|
||||
// If this section (providing an icon) causes compilation errors on linux, comment it out for now.
|
||||
// it will just mean that the icon is missing. Works OK on Windows.
|
||||
#ifdef __WXMSW__
|
||||
wxIcon ic(wxICON(AudacityLogo));
|
||||
wxIcon ic{ wxICON(AudacityLogo) };
|
||||
#else
|
||||
wxIcon ic;
|
||||
wxIcon ic{};
|
||||
ic.CopyFromBitmap(theTheme.Bitmap(bmpAudacityLogo48x48));
|
||||
#endif
|
||||
pWnd->SetIcon( ic );
|
||||
|
||||
Reference in New Issue
Block a user