Browse Source

A minor code cleanup

tags/2021-05-28
tpoole 8 years ago
parent
commit
3cb185fcc3
10 changed files with 23 additions and 25 deletions
  1. +2
    -1
      modules/juce_audio_basics/midi/juce_MidiMessageSequence.cpp
  2. +2
    -1
      modules/juce_audio_devices/native/juce_ios_Audio.cpp
  3. +2
    -1
      modules/juce_core/containers/juce_Variant.cpp
  4. +2
    -1
      modules/juce_core/network/juce_WebInputStream.cpp
  5. +2
    -1
      modules/juce_data_structures/values/juce_ValueTree.cpp
  6. +2
    -1
      modules/juce_dsp/frequency/juce_FFT.cpp
  7. +2
    -1
      modules/juce_gui_basics/layout/juce_FlexBox.cpp
  8. +4
    -8
      modules/juce_gui_basics/layout/juce_GridItem.cpp
  9. +3
    -9
      modules/juce_gui_basics/layout/juce_ResizableBorderComponent.cpp
  10. +2
    -1
      modules/juce_gui_basics/widgets/juce_TextEditor.cpp

+ 2
- 1
modules/juce_audio_basics/midi/juce_MidiMessageSequence.cpp 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
{


+ 2
- 1
modules/juce_audio_devices/native/juce_ios_Audio.cpp 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,


+ 2
- 1
modules/juce_core/containers/juce_Variant.cpp 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

+ 2
- 1
modules/juce_core/network/juce_WebInputStream.cpp 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()
{


+ 2
- 1
modules/juce_data_structures/values/juce_ValueTree.cpp 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
{


+ 2
- 1
modules/juce_dsp/frequency/juce_FFT.cpp View File

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


+ 2
- 1
modules/juce_gui_basics/layout/juce_FlexBox.cpp 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)
{


+ 4
- 8
modules/juce_gui_basics/layout/juce_GridItem.cpp 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 {}


+ 3
- 9
modules/juce_gui_basics/layout/juce_ResizableBorderComponent.cpp 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
{


+ 2
- 1
modules/juce_gui_basics/widgets/juce_TextEditor.cpp 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)
{


Loading…
Cancel
Save