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:
parent
996f44f3f6
commit
3cb185fcc3
10 changed files with 23 additions and 25 deletions
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -25,7 +25,8 @@ namespace juce
|
|||
|
||||
WebInputStream::WebInputStream (const URL& url, const bool usePost)
|
||||
: pimpl (new Pimpl (*this, url, usePost)), hasCalledConnect (false)
|
||||
{}
|
||||
{
|
||||
}
|
||||
|
||||
WebInputStream::~WebInputStream()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -805,7 +805,8 @@ FFT::EngineImpl<IntelFFT> fftwEngine;
|
|||
FFT::FFT (int order)
|
||||
: engine (FFT::Engine::createBestEngineForPlatform (order)),
|
||||
size (1 << order)
|
||||
{}
|
||||
{
|
||||
}
|
||||
|
||||
FFT::~FFT() {}
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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 {}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue