1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

A minor code cleanup

This commit is contained in:
tpoole 2017-10-12 12:31:55 +01:00
parent 996f44f3f6
commit 3cb185fcc3
10 changed files with 23 additions and 25 deletions

View file

@ -47,7 +47,8 @@ MidiMessageSequence& MidiMessageSequence::operator= (const MidiMessageSequence&
MidiMessageSequence::MidiMessageSequence (MidiMessageSequence&& other) noexcept
: list (static_cast<OwnedArray<MidiEventHolder>&&> (other.list))
{}
{
}
MidiMessageSequence& MidiMessageSequence::operator= (MidiMessageSequence&& other) noexcept
{

View file

@ -1101,7 +1101,8 @@ struct iOSAudioIODevice::Pimpl : public AudioPlayHead,
iOSAudioIODevice::iOSAudioIODevice (const String& deviceName)
: AudioIODevice (deviceName, iOSAudioDeviceName),
pimpl (new Pimpl (*this))
{}
{
}
//==============================================================================
String iOSAudioIODevice::open (const BigInteger& inChans, const BigInteger& outChans,

View file

@ -798,6 +798,7 @@ var var::readFromStream (InputStream& input)
var::NativeFunctionArgs::NativeFunctionArgs (const var& t, const var* args, int numArgs) noexcept
: thisObject (t), arguments (args), numArguments (numArgs)
{}
{
}
} // namespace juce

View file

@ -25,7 +25,8 @@ namespace juce
WebInputStream::WebInputStream (const URL& url, const bool usePost)
: pimpl (new Pimpl (*this, url, usePost)), hasCalledConnect (false)
{}
{
}
WebInputStream::~WebInputStream()
{

View file

@ -835,7 +835,8 @@ ValueTree ValueTree::getChild (int index) const
ValueTree::Iterator::Iterator (const ValueTree& v, bool isEnd) noexcept
: internal (v.object != nullptr ? (isEnd ? v.object->children.end() : v.object->children.begin()) : nullptr)
{}
{
}
ValueTree::Iterator& ValueTree::Iterator::operator++() noexcept
{

View file

@ -805,7 +805,8 @@ FFT::EngineImpl<IntelFFT> fftwEngine;
FFT::FFT (int order)
: engine (FFT::Engine::createBestEngineForPlatform (order)),
size (1 << order)
{}
{
}
FFT::~FFT() {}

View file

@ -764,7 +764,8 @@ FlexBox::FlexBox (JustifyContent jc) noexcept : justifyContent (jc) {}
FlexBox::FlexBox (Direction d, Wrap w, AlignContent ac, AlignItems ai, JustifyContent jc) noexcept
: flexDirection (d), flexWrap (w), alignContent (ac), alignItems (ai), justifyContent (jc)
{}
{
}
void FlexBox::performLayout (Rectangle<float> targetArea)
{

View file

@ -60,17 +60,13 @@ GridItem::Property::Property (Span spanToUse) noexcept
//==============================================================================
GridItem::Margin::Margin() noexcept : left(), right(), top(), bottom()
{}
GridItem::Margin::Margin() noexcept : left(), right(), top(), bottom() {}
GridItem::Margin::Margin (int v) noexcept : GridItem::Margin::Margin (static_cast<float> (v))
{}
GridItem::Margin::Margin (int v) noexcept : GridItem::Margin::Margin (static_cast<float> (v)) {}
GridItem::Margin::Margin (float v) noexcept : left (v), right (v), top (v), bottom (v)
{}
GridItem::Margin::Margin (float v) noexcept : left (v), right (v), top (v), bottom (v) {}
GridItem::Margin::Margin (float t, float r, float b, float l) noexcept : left (l), right (r), top (t), bottom (b)
{}
GridItem::Margin::Margin (float t, float r, float b, float l) noexcept : left (l), right (r), top (t), bottom (b) {}
//==============================================================================
GridItem::GridItem() noexcept {}

View file

@ -27,17 +27,11 @@
namespace juce
{
ResizableBorderComponent::Zone::Zone() noexcept
: zone (0)
{}
ResizableBorderComponent::Zone::Zone() noexcept : zone (0) {}
ResizableBorderComponent::Zone::Zone (const int zoneFlags) noexcept
: zone (zoneFlags)
{}
ResizableBorderComponent::Zone::Zone (const int zoneFlags) noexcept : zone (zoneFlags) {}
ResizableBorderComponent::Zone::Zone (const ResizableBorderComponent::Zone& other) noexcept
: zone (other.zone)
{}
ResizableBorderComponent::Zone::Zone (const ResizableBorderComponent::Zone& other) noexcept : zone (other.zone) {}
ResizableBorderComponent::Zone& ResizableBorderComponent::Zone::operator= (const ResizableBorderComponent::Zone& other) noexcept
{

View file

@ -1092,7 +1092,8 @@ void TextEditor::updateCaretPosition()
TextEditor::LengthAndCharacterRestriction::LengthAndCharacterRestriction (int maxLen, const String& chars)
: allowedCharacters (chars), maxLength (maxLen)
{}
{
}
String TextEditor::LengthAndCharacterRestriction::filterNewText (TextEditor& ed, const String& newInput)
{