1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00
This commit is contained in:
ed 2021-12-01 13:05:06 +00:00
parent 1059f7b022
commit fc0f6b1f2f
27 changed files with 12 additions and 71 deletions

View file

@ -264,7 +264,6 @@ namespace MidiFileHelpers
//==============================================================================
MidiFile::MidiFile() : timeFormat ((short) (unsigned short) 0xe728) {}
MidiFile::~MidiFile() {}
MidiFile::MidiFile (const MidiFile& other) : timeFormat (other.timeFormat)
{

View file

@ -45,9 +45,6 @@ public:
/** Creates an empty MidiFile object. */
MidiFile();
/** Destructor. */
~MidiFile();
/** Creates a copy of another MidiFile. */
MidiFile (const MidiFile&);

View file

@ -28,10 +28,6 @@ MidiKeyboardState::MidiKeyboardState()
zerostruct (noteStates);
}
MidiKeyboardState::~MidiKeyboardState()
{
}
//==============================================================================
void MidiKeyboardState::reset()
{

View file

@ -43,7 +43,6 @@ class JUCE_API MidiKeyboardState
public:
//==============================================================================
MidiKeyboardState();
~MidiKeyboardState();
//==============================================================================
/** Resets the state of the object.

View file

@ -25,7 +25,6 @@ namespace juce
MidiMessageSequence::MidiEventHolder::MidiEventHolder (const MidiMessage& mm) : message (mm) {}
MidiMessageSequence::MidiEventHolder::MidiEventHolder (MidiMessage&& mm) : message (std::move (mm)) {}
MidiMessageSequence::MidiEventHolder::~MidiEventHolder() {}
//==============================================================================
MidiMessageSequence::MidiMessageSequence()
@ -63,10 +62,6 @@ MidiMessageSequence& MidiMessageSequence::operator= (MidiMessageSequence&& other
return *this;
}
MidiMessageSequence::~MidiMessageSequence()
{
}
void MidiMessageSequence::swapWith (MidiMessageSequence& other) noexcept
{
list.swapWith (other.list);

View file

@ -53,9 +53,6 @@ public:
/** Move assignment operator */
MidiMessageSequence& operator= (MidiMessageSequence&&) noexcept;
/** Destructor. */
~MidiMessageSequence();
//==============================================================================
/** Structure used to hold midi events in the sequence.
@ -68,9 +65,6 @@ public:
{
public:
//==============================================================================
/** Destructor. */
~MidiEventHolder();
/** The message itself, whose timestamp is used to specify the event's time. */
MidiMessage message;

View file

@ -258,7 +258,7 @@ private:
struct MidiHeader
{
MidiHeader() {}
MidiHeader() = default;
void prepare (HMIDIIN device)
{

View file

@ -28,8 +28,6 @@ AbstractFifo::AbstractFifo (int capacity) noexcept : bufferSize (capacity)
jassert (bufferSize > 0);
}
AbstractFifo::~AbstractFifo() {}
int AbstractFifo::getTotalSize() const noexcept { return bufferSize; }
int AbstractFifo::getFreeSpace() const noexcept { return bufferSize - getNumReady() - 1; }

View file

@ -76,9 +76,6 @@ public:
/** Creates a FIFO to manage a buffer with the specified capacity. */
AbstractFifo (int capacity) noexcept;
/** Destructor */
~AbstractFifo();
//==============================================================================
/** Returns the total size of the buffer being managed. */
int getTotalSize() const noexcept;

View file

@ -23,9 +23,6 @@
namespace juce
{
FileSearchPath::FileSearchPath() {}
FileSearchPath::~FileSearchPath() {}
FileSearchPath::FileSearchPath (const String& path)
{
init (path);

View file

@ -36,7 +36,10 @@ class JUCE_API FileSearchPath
public:
//==============================================================================
/** Creates an empty search path. */
FileSearchPath();
FileSearchPath() = default;
/** Destructor. */
~FileSearchPath() = default;
/** Creates a search path from a string of pathnames.
@ -53,9 +56,6 @@ public:
/** Copies another search path. */
FileSearchPath& operator= (const FileSearchPath&);
/** Destructor. */
~FileSearchPath();
/** Uses a string containing a list of pathnames to re-initialise this list.
This search path is cleared and the semicolon- or comma-separated folders

View file

@ -130,10 +130,6 @@ BigInteger& BigInteger::operator= (BigInteger&& other) noexcept
return *this;
}
BigInteger::~BigInteger()
{
}
void BigInteger::swapWith (BigInteger& other) noexcept
{
for (int i = 0; i < numPreallocatedInts; ++i)

View file

@ -69,7 +69,7 @@ public:
BigInteger& operator= (BigInteger&&) noexcept;
/** Destructor. */
~BigInteger();
~BigInteger() = default;
//==============================================================================
/** Copies another BigInteger onto this one. */

View file

@ -48,10 +48,6 @@ LocalisedStrings& LocalisedStrings::operator= (const LocalisedStrings& other)
return *this;
}
LocalisedStrings::~LocalisedStrings()
{
}
//==============================================================================
String LocalisedStrings::translate (const String& text) const
{

View file

@ -90,7 +90,7 @@ public:
LocalisedStrings& operator= (const LocalisedStrings&);
/** Destructor. */
~LocalisedStrings();
~LocalisedStrings() = default;
//==============================================================================
/** Selects the current set of mappings to be used by the system.

View file

@ -89,10 +89,6 @@ StringArray& StringArray::operator= (StringArray&& other) noexcept
return *this;
}
StringArray::~StringArray()
{
}
bool StringArray::operator== (const StringArray& other) const noexcept
{
return strings == other.strings;

View file

@ -99,7 +99,7 @@ public:
StringArray (const wchar_t* const* strings, int numberOfStrings);
/** Destructor. */
~StringArray();
~StringArray() = default;
/** Copies the contents of another string array into this one */
StringArray& operator= (const StringArray&);

View file

@ -34,10 +34,6 @@ StringPairArray::StringPairArray (const StringPairArray& other)
{
}
StringPairArray::~StringPairArray()
{
}
StringPairArray& StringPairArray::operator= (const StringPairArray& other)
{
keys = other.keys;

View file

@ -42,7 +42,7 @@ public:
StringPairArray (const StringPairArray& other);
/** Destructor. */
~StringPairArray();
~StringPairArray() = default;
/** Copies the contents of another string array into this one */
StringPairArray& operator= (const StringPairArray& other);

View file

@ -28,7 +28,6 @@ static const uint32 garbageCollectionInterval = 30000;
StringPool::StringPool() noexcept : lastGarbageCollectionTime (0) {}
StringPool::~StringPool() {}
struct StartEndString
{

View file

@ -43,9 +43,6 @@ public:
/** Creates an empty pool. */
StringPool() noexcept;
/** Destructor */
~StringPool();
//==============================================================================
/** Returns a pointer to a shared copy of the string that is passed in.
The pool will always return the same String object when asked for a string that matches it.

View file

@ -26,10 +26,6 @@
namespace juce
{
ApplicationProperties::ApplicationProperties()
{
}
ApplicationProperties::~ApplicationProperties()
{
closeFiles();

View file

@ -57,7 +57,7 @@ public:
Before using it, you must call setStorageParameters() to give it the info
it needs to create the property files.
*/
ApplicationProperties();
ApplicationProperties() = default;
/** Destructor. */
~ApplicationProperties();

View file

@ -203,7 +203,7 @@ public:
Creates a new critical section to exclusively access methods which can
only be called when the message manager is locked.
Unlike CrititcalSection, multiple instances of this lock class provide
Unlike CriticalSection, multiple instances of this lock class provide
exclusive access to a single resource - the MessageManager.
*/
Lock();

View file

@ -81,10 +81,6 @@ FileSearchPathListComponent::FileSearchPathListComponent()
updateButtons();
}
FileSearchPathListComponent::~FileSearchPathListComponent()
{
}
void FileSearchPathListComponent::updateButtons()
{
const bool anythingSelected = listBox.getNumSelectedRows() > 0;

View file

@ -45,9 +45,6 @@ public:
/** Creates an empty FileSearchPathListComponent. */
FileSearchPathListComponent();
/** Destructor. */
~FileSearchPathListComponent() override;
//==============================================================================
/** Returns the path as it is currently shown. */
const FileSearchPath& getPath() const noexcept { return path; }

View file

@ -1430,7 +1430,7 @@ private:
//==============================================================================
struct ComBaseModule
{
ComBaseModule() {}
ComBaseModule() = default;
ComBaseModule (LPCWSTR libraryName) : h (::LoadLibrary (libraryName)) {}
ComBaseModule (ComBaseModule&& o) : h (o.h) { o.h = nullptr; }
~ComBaseModule() { release(); }