mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Tidy up
This commit is contained in:
parent
1059f7b022
commit
fc0f6b1f2f
27 changed files with 12 additions and 71 deletions
|
|
@ -264,7 +264,6 @@ namespace MidiFileHelpers
|
|||
|
||||
//==============================================================================
|
||||
MidiFile::MidiFile() : timeFormat ((short) (unsigned short) 0xe728) {}
|
||||
MidiFile::~MidiFile() {}
|
||||
|
||||
MidiFile::MidiFile (const MidiFile& other) : timeFormat (other.timeFormat)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -45,9 +45,6 @@ public:
|
|||
/** Creates an empty MidiFile object. */
|
||||
MidiFile();
|
||||
|
||||
/** Destructor. */
|
||||
~MidiFile();
|
||||
|
||||
/** Creates a copy of another MidiFile. */
|
||||
MidiFile (const MidiFile&);
|
||||
|
||||
|
|
|
|||
|
|
@ -28,10 +28,6 @@ MidiKeyboardState::MidiKeyboardState()
|
|||
zerostruct (noteStates);
|
||||
}
|
||||
|
||||
MidiKeyboardState::~MidiKeyboardState()
|
||||
{
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
void MidiKeyboardState::reset()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -43,7 +43,6 @@ class JUCE_API MidiKeyboardState
|
|||
public:
|
||||
//==============================================================================
|
||||
MidiKeyboardState();
|
||||
~MidiKeyboardState();
|
||||
|
||||
//==============================================================================
|
||||
/** Resets the state of the object.
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -258,7 +258,7 @@ private:
|
|||
|
||||
struct MidiHeader
|
||||
{
|
||||
MidiHeader() {}
|
||||
MidiHeader() = default;
|
||||
|
||||
void prepare (HMIDIIN device)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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; }
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -23,9 +23,6 @@
|
|||
namespace juce
|
||||
{
|
||||
|
||||
FileSearchPath::FileSearchPath() {}
|
||||
FileSearchPath::~FileSearchPath() {}
|
||||
|
||||
FileSearchPath::FileSearchPath (const String& path)
|
||||
{
|
||||
init (path);
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@ public:
|
|||
BigInteger& operator= (BigInteger&&) noexcept;
|
||||
|
||||
/** Destructor. */
|
||||
~BigInteger();
|
||||
~BigInteger() = default;
|
||||
|
||||
//==============================================================================
|
||||
/** Copies another BigInteger onto this one. */
|
||||
|
|
|
|||
|
|
@ -48,10 +48,6 @@ LocalisedStrings& LocalisedStrings::operator= (const LocalisedStrings& other)
|
|||
return *this;
|
||||
}
|
||||
|
||||
LocalisedStrings::~LocalisedStrings()
|
||||
{
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
String LocalisedStrings::translate (const String& text) const
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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&);
|
||||
|
|
|
|||
|
|
@ -34,10 +34,6 @@ StringPairArray::StringPairArray (const StringPairArray& other)
|
|||
{
|
||||
}
|
||||
|
||||
StringPairArray::~StringPairArray()
|
||||
{
|
||||
}
|
||||
|
||||
StringPairArray& StringPairArray::operator= (const StringPairArray& other)
|
||||
{
|
||||
keys = other.keys;
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -28,7 +28,6 @@ static const uint32 garbageCollectionInterval = 30000;
|
|||
|
||||
|
||||
StringPool::StringPool() noexcept : lastGarbageCollectionTime (0) {}
|
||||
StringPool::~StringPool() {}
|
||||
|
||||
struct StartEndString
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -26,10 +26,6 @@
|
|||
namespace juce
|
||||
{
|
||||
|
||||
ApplicationProperties::ApplicationProperties()
|
||||
{
|
||||
}
|
||||
|
||||
ApplicationProperties::~ApplicationProperties()
|
||||
{
|
||||
closeFiles();
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -81,10 +81,6 @@ FileSearchPathListComponent::FileSearchPathListComponent()
|
|||
updateButtons();
|
||||
}
|
||||
|
||||
FileSearchPathListComponent::~FileSearchPathListComponent()
|
||||
{
|
||||
}
|
||||
|
||||
void FileSearchPathListComponent::updateButtons()
|
||||
{
|
||||
const bool anythingSelected = listBox.getNumSelectedRows() > 0;
|
||||
|
|
|
|||
|
|
@ -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; }
|
||||
|
|
|
|||
|
|
@ -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(); }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue