Delete or un-inline some constructors, assignments, others...
... Which will be needed for various reasons for Windows builds of certain modularizations, which will otherwise complain that they can no longer generate them as inlines. In one case, deleted copies require explicitly defaulted moves, but they will work as generated inline.
This commit is contained in:
parent
3060530b4f
commit
fbfccf1393
|
@ -79,6 +79,8 @@ AudacityLogger::AudacityLogger()
|
|||
mUpdated = false;
|
||||
}
|
||||
|
||||
AudacityLogger::~AudacityLogger() = default;
|
||||
|
||||
void AudacityLogger::Flush()
|
||||
{
|
||||
if (mUpdated && mFrame && mFrame->IsShown()) {
|
||||
|
|
|
@ -31,6 +31,8 @@ class AudacityLogger final : public wxEvtHandler,
|
|||
public PrefsListener
|
||||
{
|
||||
public:
|
||||
|
||||
~AudacityLogger() override;
|
||||
|
||||
// Get the singleton instance or null
|
||||
static AudacityLogger *Get();
|
||||
|
|
|
@ -107,6 +107,8 @@ private:
|
|||
// I'm a singleton class
|
||||
ModuleManager();
|
||||
~ModuleManager();
|
||||
ModuleManager(const ModuleManager&) PROHIBITED;
|
||||
ModuleManager &operator=(const ModuleManager&) PROHIBITED;
|
||||
|
||||
void InitializeBuiltins();
|
||||
ModuleInterface *LoadModule(const PluginPath & path);
|
||||
|
|
|
@ -131,6 +131,7 @@ namespace Registry {
|
|||
GroupItem( const Identifier &internalName, BaseItemPtrs &&items_ )
|
||||
: BaseItem{ internalName }, items{ std::move( items_ ) }
|
||||
{}
|
||||
GroupItem( const GroupItem& ) PROHIBITED;
|
||||
~GroupItem() override = 0;
|
||||
|
||||
// Whether the item is non-significant for path naming
|
||||
|
|
|
@ -16,6 +16,8 @@
|
|||
|
||||
#include "CommandSignature.h"
|
||||
|
||||
CommandSignature::CommandSignature() = default;
|
||||
|
||||
CommandSignature::~CommandSignature()
|
||||
{
|
||||
}
|
||||
|
|
|
@ -30,9 +30,10 @@ class CommandSignature
|
|||
private:
|
||||
ParamValueMap mDefaults;
|
||||
ValidatorMap mValidators;
|
||||
explicit CommandSignature(const CommandSignature & WXUNUSED(other)) { }
|
||||
CommandSignature(const CommandSignature &) PROHIBITED;
|
||||
CommandSignature& operator=(const CommandSignature &) PROHIBITED;
|
||||
public:
|
||||
explicit CommandSignature() { }
|
||||
explicit CommandSignature();
|
||||
~CommandSignature();
|
||||
|
||||
// Add a parameter to the signature.
|
||||
|
|
|
@ -98,6 +98,9 @@ public:
|
|||
Importer();
|
||||
~Importer();
|
||||
|
||||
Importer( const Importer& ) PROHIBITED;
|
||||
Importer &operator=( Importer& ) PROHIBITED;
|
||||
|
||||
/**
|
||||
* Return instance reference
|
||||
*/
|
||||
|
@ -156,7 +159,7 @@ public:
|
|||
* Returns a pointer to internal items array.
|
||||
* External objects are allowed to change the array contents.
|
||||
*/
|
||||
ExtImportItems &GetImportItems() { return mExtImportItems; };
|
||||
ExtImportItems &GetImportItems() { return mExtImportItems; }
|
||||
|
||||
/**
|
||||
* Allocates NEW ExtImportItem, fills it with default data
|
||||
|
|
|
@ -15,6 +15,24 @@ Paul Licameli split from Import.cpp
|
|||
#include "../widgets/ProgressDialog.h"
|
||||
#include "../prefs/QualityPrefs.h"
|
||||
|
||||
ImportPlugin::ImportPlugin(FileExtensions supportedExtensions):
|
||||
mExtensions( std::move( supportedExtensions ) )
|
||||
{
|
||||
}
|
||||
|
||||
ImportPlugin::~ImportPlugin() = default;
|
||||
|
||||
FileExtensions ImportPlugin::GetSupportedExtensions()
|
||||
{
|
||||
return mExtensions;
|
||||
}
|
||||
|
||||
bool ImportPlugin::SupportsExtension(const FileExtension &extension)
|
||||
{
|
||||
// Case-insensitive check if extension is supported
|
||||
return mExtensions.Index(extension, false) != wxNOT_FOUND;
|
||||
}
|
||||
|
||||
ImportFileHandle::ImportFileHandle(const FilePath & filename)
|
||||
: mFilename(filename)
|
||||
{
|
||||
|
|
|
@ -77,16 +77,9 @@ public:
|
|||
// Get a list of extensions this plugin expects to be able to
|
||||
// import. If a filename matches any of these extensions,
|
||||
// this importer will get first dibs on importing it.
|
||||
virtual FileExtensions GetSupportedExtensions()
|
||||
{
|
||||
return mExtensions;
|
||||
}
|
||||
virtual FileExtensions GetSupportedExtensions();
|
||||
|
||||
bool SupportsExtension(const FileExtension &extension)
|
||||
{
|
||||
// Case-insensitive check if extension is supported
|
||||
return mExtensions.Index(extension, false) != wxNOT_FOUND;
|
||||
}
|
||||
bool SupportsExtension(const FileExtension &extension);
|
||||
|
||||
// Open the given file, returning true if it is in a recognized
|
||||
// format, false otherwise. This puts the importer into the open
|
||||
|
@ -94,14 +87,11 @@ public:
|
|||
virtual std::unique_ptr<ImportFileHandle> Open(
|
||||
const FilePath &Filename, AudacityProject*) = 0;
|
||||
|
||||
virtual ~ImportPlugin() { }
|
||||
virtual ~ImportPlugin();
|
||||
|
||||
protected:
|
||||
|
||||
ImportPlugin(FileExtensions supportedExtensions):
|
||||
mExtensions( std::move( supportedExtensions ) )
|
||||
{
|
||||
}
|
||||
ImportPlugin(FileExtensions supportedExtensions);
|
||||
|
||||
const FileExtensions mExtensions;
|
||||
};
|
||||
|
|
|
@ -111,6 +111,8 @@ void ClipMoveState::DoHorizontalOffset( double offset )
|
|||
}
|
||||
}
|
||||
|
||||
TrackShifter::TrackShifter() = default;
|
||||
|
||||
TrackShifter::~TrackShifter() = default;
|
||||
|
||||
void TrackShifter::UnfixIntervals(
|
||||
|
|
|
@ -30,6 +30,10 @@ class ViewInfo;
|
|||
//! Abstract base class for policies to manipulate a track type with the Time Shift tool
|
||||
class TrackShifter {
|
||||
public:
|
||||
TrackShifter();
|
||||
TrackShifter(const TrackShifter&) PROHIBITED;
|
||||
TrackShifter &operator=(const TrackShifter&) PROHIBITED;
|
||||
|
||||
virtual ~TrackShifter() = 0;
|
||||
//! There is always an associated track
|
||||
virtual Track &GetTrack() const = 0;
|
||||
|
@ -196,6 +200,14 @@ using MakeTrackShifter = AttachedVirtualFunction<
|
|||
class ViewInfo;
|
||||
|
||||
struct ClipMoveState {
|
||||
ClipMoveState() = default;
|
||||
|
||||
ClipMoveState(const ClipMoveState&) PROHIBITED;
|
||||
ClipMoveState& operator =(const ClipMoveState&) PROHIBITED;
|
||||
|
||||
ClipMoveState(ClipMoveState&&) = default;
|
||||
ClipMoveState& operator =(ClipMoveState&&) = default;
|
||||
|
||||
using ShifterMap = std::unordered_map<Track*, std::unique_ptr<TrackShifter>>;
|
||||
|
||||
//! Will associate a TrackShifter with each track in the list
|
||||
|
|
|
@ -102,6 +102,10 @@
|
|||
#include <wx/dcclient.h>
|
||||
#include <wx/image.h>
|
||||
|
||||
ImageRoll::ImageRoll(const ImageRoll&) = default;
|
||||
ImageRoll &ImageRoll::operator =(const ImageRoll&) = default;
|
||||
ImageRoll::~ImageRoll() = default;
|
||||
|
||||
// static
|
||||
ImageArray ImageRoll::SplitH(const wxImage &src, wxColour magicColor)
|
||||
{
|
||||
|
|
|
@ -38,6 +38,9 @@ class ImageRoll
|
|||
ImageRoll();
|
||||
ImageRoll(const wxImage &src);
|
||||
ImageRoll(RollType type, const wxImage &src, wxColour magicColor);
|
||||
ImageRoll(const ImageRoll&);
|
||||
ImageRoll &operator =(const ImageRoll&);
|
||||
~ImageRoll();
|
||||
|
||||
bool Ok() const;
|
||||
|
||||
|
|
|
@ -938,6 +938,8 @@ void NumericConverter::PrintDebugInfo()
|
|||
wxPrintf("\n");
|
||||
}
|
||||
|
||||
NumericConverter::NumericConverter(const NumericConverter&) = default;
|
||||
|
||||
NumericConverter::~NumericConverter()
|
||||
{
|
||||
}
|
||||
|
|
|
@ -85,6 +85,7 @@ public:
|
|||
const NumericFormatSymbol & formatName = {},
|
||||
double value = 0.0f,
|
||||
double sampleRate = 1.0f /* to prevent div by 0 */);
|
||||
NumericConverter(const NumericConverter&);
|
||||
|
||||
virtual ~NumericConverter();
|
||||
|
||||
|
|
Loading…
Reference in New Issue