1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-15 09:01:12 +01:00

More changes to Audacity.h to hide new and delete from code sweeps...

... changed some comments, and hid  = delete in a macro.

That is a new C++11 feature that lets you stipulate that a class suppresses an
otherwise inherited or generated name.
This commit is contained in:
Paul Licameli
2016-02-19 10:46:23 -05:00
parent d9c2ff6dc2
commit 9e5d31d347
2 changed files with 10 additions and 7 deletions

View File

@@ -28,8 +28,8 @@ struct AboutDialogCreditItem {
{}
// No copy
AboutDialogCreditItem(const AboutDialogCreditItem&) = delete;
AboutDialogCreditItem& operator= (const AboutDialogCreditItem&) = delete;
AboutDialogCreditItem(const AboutDialogCreditItem&) PROHIBITED;
AboutDialogCreditItem& operator= (const AboutDialogCreditItem&) PROHIBITED;
// Move constructor, because wxString lacks one
AboutDialogCreditItem(AboutDialogCreditItem &&moveMe)