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() : timeFormat ((short) (unsigned short) 0xe728) {}
|
||||||
MidiFile::~MidiFile() {}
|
|
||||||
|
|
||||||
MidiFile::MidiFile (const MidiFile& other) : timeFormat (other.timeFormat)
|
MidiFile::MidiFile (const MidiFile& other) : timeFormat (other.timeFormat)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -45,9 +45,6 @@ public:
|
||||||
/** Creates an empty MidiFile object. */
|
/** Creates an empty MidiFile object. */
|
||||||
MidiFile();
|
MidiFile();
|
||||||
|
|
||||||
/** Destructor. */
|
|
||||||
~MidiFile();
|
|
||||||
|
|
||||||
/** Creates a copy of another MidiFile. */
|
/** Creates a copy of another MidiFile. */
|
||||||
MidiFile (const MidiFile&);
|
MidiFile (const MidiFile&);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -28,10 +28,6 @@ MidiKeyboardState::MidiKeyboardState()
|
||||||
zerostruct (noteStates);
|
zerostruct (noteStates);
|
||||||
}
|
}
|
||||||
|
|
||||||
MidiKeyboardState::~MidiKeyboardState()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
void MidiKeyboardState::reset()
|
void MidiKeyboardState::reset()
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,6 @@ class JUCE_API MidiKeyboardState
|
||||||
public:
|
public:
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
MidiKeyboardState();
|
MidiKeyboardState();
|
||||||
~MidiKeyboardState();
|
|
||||||
|
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
/** Resets the state of the object.
|
/** Resets the state of the object.
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,6 @@ namespace juce
|
||||||
|
|
||||||
MidiMessageSequence::MidiEventHolder::MidiEventHolder (const MidiMessage& mm) : message (mm) {}
|
MidiMessageSequence::MidiEventHolder::MidiEventHolder (const MidiMessage& mm) : message (mm) {}
|
||||||
MidiMessageSequence::MidiEventHolder::MidiEventHolder (MidiMessage&& mm) : message (std::move (mm)) {}
|
MidiMessageSequence::MidiEventHolder::MidiEventHolder (MidiMessage&& mm) : message (std::move (mm)) {}
|
||||||
MidiMessageSequence::MidiEventHolder::~MidiEventHolder() {}
|
|
||||||
|
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
MidiMessageSequence::MidiMessageSequence()
|
MidiMessageSequence::MidiMessageSequence()
|
||||||
|
|
@ -63,10 +62,6 @@ MidiMessageSequence& MidiMessageSequence::operator= (MidiMessageSequence&& other
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
MidiMessageSequence::~MidiMessageSequence()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
void MidiMessageSequence::swapWith (MidiMessageSequence& other) noexcept
|
void MidiMessageSequence::swapWith (MidiMessageSequence& other) noexcept
|
||||||
{
|
{
|
||||||
list.swapWith (other.list);
|
list.swapWith (other.list);
|
||||||
|
|
|
||||||
|
|
@ -53,9 +53,6 @@ public:
|
||||||
/** Move assignment operator */
|
/** Move assignment operator */
|
||||||
MidiMessageSequence& operator= (MidiMessageSequence&&) noexcept;
|
MidiMessageSequence& operator= (MidiMessageSequence&&) noexcept;
|
||||||
|
|
||||||
/** Destructor. */
|
|
||||||
~MidiMessageSequence();
|
|
||||||
|
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
/** Structure used to hold midi events in the sequence.
|
/** Structure used to hold midi events in the sequence.
|
||||||
|
|
||||||
|
|
@ -68,9 +65,6 @@ public:
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
/** Destructor. */
|
|
||||||
~MidiEventHolder();
|
|
||||||
|
|
||||||
/** The message itself, whose timestamp is used to specify the event's time. */
|
/** The message itself, whose timestamp is used to specify the event's time. */
|
||||||
MidiMessage message;
|
MidiMessage message;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -258,7 +258,7 @@ private:
|
||||||
|
|
||||||
struct MidiHeader
|
struct MidiHeader
|
||||||
{
|
{
|
||||||
MidiHeader() {}
|
MidiHeader() = default;
|
||||||
|
|
||||||
void prepare (HMIDIIN device)
|
void prepare (HMIDIIN device)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -28,8 +28,6 @@ AbstractFifo::AbstractFifo (int capacity) noexcept : bufferSize (capacity)
|
||||||
jassert (bufferSize > 0);
|
jassert (bufferSize > 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
AbstractFifo::~AbstractFifo() {}
|
|
||||||
|
|
||||||
int AbstractFifo::getTotalSize() const noexcept { return bufferSize; }
|
int AbstractFifo::getTotalSize() const noexcept { return bufferSize; }
|
||||||
int AbstractFifo::getFreeSpace() const noexcept { return bufferSize - getNumReady() - 1; }
|
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. */
|
/** Creates a FIFO to manage a buffer with the specified capacity. */
|
||||||
AbstractFifo (int capacity) noexcept;
|
AbstractFifo (int capacity) noexcept;
|
||||||
|
|
||||||
/** Destructor */
|
|
||||||
~AbstractFifo();
|
|
||||||
|
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
/** Returns the total size of the buffer being managed. */
|
/** Returns the total size of the buffer being managed. */
|
||||||
int getTotalSize() const noexcept;
|
int getTotalSize() const noexcept;
|
||||||
|
|
|
||||||
|
|
@ -23,9 +23,6 @@
|
||||||
namespace juce
|
namespace juce
|
||||||
{
|
{
|
||||||
|
|
||||||
FileSearchPath::FileSearchPath() {}
|
|
||||||
FileSearchPath::~FileSearchPath() {}
|
|
||||||
|
|
||||||
FileSearchPath::FileSearchPath (const String& path)
|
FileSearchPath::FileSearchPath (const String& path)
|
||||||
{
|
{
|
||||||
init (path);
|
init (path);
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,10 @@ class JUCE_API FileSearchPath
|
||||||
public:
|
public:
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
/** Creates an empty search path. */
|
/** Creates an empty search path. */
|
||||||
FileSearchPath();
|
FileSearchPath() = default;
|
||||||
|
|
||||||
|
/** Destructor. */
|
||||||
|
~FileSearchPath() = default;
|
||||||
|
|
||||||
/** Creates a search path from a string of pathnames.
|
/** Creates a search path from a string of pathnames.
|
||||||
|
|
||||||
|
|
@ -53,9 +56,6 @@ public:
|
||||||
/** Copies another search path. */
|
/** Copies another search path. */
|
||||||
FileSearchPath& operator= (const FileSearchPath&);
|
FileSearchPath& operator= (const FileSearchPath&);
|
||||||
|
|
||||||
/** Destructor. */
|
|
||||||
~FileSearchPath();
|
|
||||||
|
|
||||||
/** Uses a string containing a list of pathnames to re-initialise this list.
|
/** 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
|
This search path is cleared and the semicolon- or comma-separated folders
|
||||||
|
|
|
||||||
|
|
@ -130,10 +130,6 @@ BigInteger& BigInteger::operator= (BigInteger&& other) noexcept
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
BigInteger::~BigInteger()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
void BigInteger::swapWith (BigInteger& other) noexcept
|
void BigInteger::swapWith (BigInteger& other) noexcept
|
||||||
{
|
{
|
||||||
for (int i = 0; i < numPreallocatedInts; ++i)
|
for (int i = 0; i < numPreallocatedInts; ++i)
|
||||||
|
|
|
||||||
|
|
@ -69,7 +69,7 @@ public:
|
||||||
BigInteger& operator= (BigInteger&&) noexcept;
|
BigInteger& operator= (BigInteger&&) noexcept;
|
||||||
|
|
||||||
/** Destructor. */
|
/** Destructor. */
|
||||||
~BigInteger();
|
~BigInteger() = default;
|
||||||
|
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
/** Copies another BigInteger onto this one. */
|
/** Copies another BigInteger onto this one. */
|
||||||
|
|
|
||||||
|
|
@ -48,10 +48,6 @@ LocalisedStrings& LocalisedStrings::operator= (const LocalisedStrings& other)
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
LocalisedStrings::~LocalisedStrings()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
String LocalisedStrings::translate (const String& text) const
|
String LocalisedStrings::translate (const String& text) const
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -90,7 +90,7 @@ public:
|
||||||
LocalisedStrings& operator= (const LocalisedStrings&);
|
LocalisedStrings& operator= (const LocalisedStrings&);
|
||||||
|
|
||||||
/** Destructor. */
|
/** Destructor. */
|
||||||
~LocalisedStrings();
|
~LocalisedStrings() = default;
|
||||||
|
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
/** Selects the current set of mappings to be used by the system.
|
/** Selects the current set of mappings to be used by the system.
|
||||||
|
|
|
||||||
|
|
@ -89,10 +89,6 @@ StringArray& StringArray::operator= (StringArray&& other) noexcept
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
StringArray::~StringArray()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
bool StringArray::operator== (const StringArray& other) const noexcept
|
bool StringArray::operator== (const StringArray& other) const noexcept
|
||||||
{
|
{
|
||||||
return strings == other.strings;
|
return strings == other.strings;
|
||||||
|
|
|
||||||
|
|
@ -99,7 +99,7 @@ public:
|
||||||
StringArray (const wchar_t* const* strings, int numberOfStrings);
|
StringArray (const wchar_t* const* strings, int numberOfStrings);
|
||||||
|
|
||||||
/** Destructor. */
|
/** Destructor. */
|
||||||
~StringArray();
|
~StringArray() = default;
|
||||||
|
|
||||||
/** Copies the contents of another string array into this one */
|
/** Copies the contents of another string array into this one */
|
||||||
StringArray& operator= (const StringArray&);
|
StringArray& operator= (const StringArray&);
|
||||||
|
|
|
||||||
|
|
@ -34,10 +34,6 @@ StringPairArray::StringPairArray (const StringPairArray& other)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
StringPairArray::~StringPairArray()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
StringPairArray& StringPairArray::operator= (const StringPairArray& other)
|
StringPairArray& StringPairArray::operator= (const StringPairArray& other)
|
||||||
{
|
{
|
||||||
keys = other.keys;
|
keys = other.keys;
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,7 @@ public:
|
||||||
StringPairArray (const StringPairArray& other);
|
StringPairArray (const StringPairArray& other);
|
||||||
|
|
||||||
/** Destructor. */
|
/** Destructor. */
|
||||||
~StringPairArray();
|
~StringPairArray() = default;
|
||||||
|
|
||||||
/** Copies the contents of another string array into this one */
|
/** Copies the contents of another string array into this one */
|
||||||
StringPairArray& operator= (const StringPairArray& other);
|
StringPairArray& operator= (const StringPairArray& other);
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,6 @@ static const uint32 garbageCollectionInterval = 30000;
|
||||||
|
|
||||||
|
|
||||||
StringPool::StringPool() noexcept : lastGarbageCollectionTime (0) {}
|
StringPool::StringPool() noexcept : lastGarbageCollectionTime (0) {}
|
||||||
StringPool::~StringPool() {}
|
|
||||||
|
|
||||||
struct StartEndString
|
struct StartEndString
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -43,9 +43,6 @@ public:
|
||||||
/** Creates an empty pool. */
|
/** Creates an empty pool. */
|
||||||
StringPool() noexcept;
|
StringPool() noexcept;
|
||||||
|
|
||||||
/** Destructor */
|
|
||||||
~StringPool();
|
|
||||||
|
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
/** Returns a pointer to a shared copy of the string that is passed in.
|
/** 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.
|
The pool will always return the same String object when asked for a string that matches it.
|
||||||
|
|
|
||||||
|
|
@ -26,10 +26,6 @@
|
||||||
namespace juce
|
namespace juce
|
||||||
{
|
{
|
||||||
|
|
||||||
ApplicationProperties::ApplicationProperties()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
ApplicationProperties::~ApplicationProperties()
|
ApplicationProperties::~ApplicationProperties()
|
||||||
{
|
{
|
||||||
closeFiles();
|
closeFiles();
|
||||||
|
|
|
||||||
|
|
@ -57,7 +57,7 @@ public:
|
||||||
Before using it, you must call setStorageParameters() to give it the info
|
Before using it, you must call setStorageParameters() to give it the info
|
||||||
it needs to create the property files.
|
it needs to create the property files.
|
||||||
*/
|
*/
|
||||||
ApplicationProperties();
|
ApplicationProperties() = default;
|
||||||
|
|
||||||
/** Destructor. */
|
/** Destructor. */
|
||||||
~ApplicationProperties();
|
~ApplicationProperties();
|
||||||
|
|
|
||||||
|
|
@ -203,7 +203,7 @@ public:
|
||||||
Creates a new critical section to exclusively access methods which can
|
Creates a new critical section to exclusively access methods which can
|
||||||
only be called when the message manager is locked.
|
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.
|
exclusive access to a single resource - the MessageManager.
|
||||||
*/
|
*/
|
||||||
Lock();
|
Lock();
|
||||||
|
|
|
||||||
|
|
@ -81,10 +81,6 @@ FileSearchPathListComponent::FileSearchPathListComponent()
|
||||||
updateButtons();
|
updateButtons();
|
||||||
}
|
}
|
||||||
|
|
||||||
FileSearchPathListComponent::~FileSearchPathListComponent()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
void FileSearchPathListComponent::updateButtons()
|
void FileSearchPathListComponent::updateButtons()
|
||||||
{
|
{
|
||||||
const bool anythingSelected = listBox.getNumSelectedRows() > 0;
|
const bool anythingSelected = listBox.getNumSelectedRows() > 0;
|
||||||
|
|
|
||||||
|
|
@ -45,9 +45,6 @@ public:
|
||||||
/** Creates an empty FileSearchPathListComponent. */
|
/** Creates an empty FileSearchPathListComponent. */
|
||||||
FileSearchPathListComponent();
|
FileSearchPathListComponent();
|
||||||
|
|
||||||
/** Destructor. */
|
|
||||||
~FileSearchPathListComponent() override;
|
|
||||||
|
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
/** Returns the path as it is currently shown. */
|
/** Returns the path as it is currently shown. */
|
||||||
const FileSearchPath& getPath() const noexcept { return path; }
|
const FileSearchPath& getPath() const noexcept { return path; }
|
||||||
|
|
|
||||||
|
|
@ -1430,7 +1430,7 @@ private:
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
struct ComBaseModule
|
struct ComBaseModule
|
||||||
{
|
{
|
||||||
ComBaseModule() {}
|
ComBaseModule() = default;
|
||||||
ComBaseModule (LPCWSTR libraryName) : h (::LoadLibrary (libraryName)) {}
|
ComBaseModule (LPCWSTR libraryName) : h (::LoadLibrary (libraryName)) {}
|
||||||
ComBaseModule (ComBaseModule&& o) : h (o.h) { o.h = nullptr; }
|
ComBaseModule (ComBaseModule&& o) : h (o.h) { o.h = nullptr; }
|
||||||
~ComBaseModule() { release(); }
|
~ComBaseModule() { release(); }
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue