Browse Source

Fix some deprecation warnings

pull/22/head
reuk 3 years ago
parent
commit
ebac835673
No known key found for this signature in database GPG Key ID: FCB43929F012EE5C
10 changed files with 15 additions and 11 deletions
  1. +7
    -0
      examples/Plugins/SamplerPluginDemo.h
  2. +0
    -1
      modules/juce_audio_basics/mpe/juce_MPEZoneLayout.h
  3. +3
    -1
      modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp
  4. +1
    -1
      modules/juce_audio_processors/format_types/juce_AudioUnitPluginFormat.mm
  5. +2
    -0
      modules/juce_core/containers/juce_ElementComparator.h
  6. +0
    -3
      modules/juce_core/network/juce_URL.h
  7. +0
    -3
      modules/juce_dsp/containers/juce_SIMDRegister.h
  8. +1
    -0
      modules/juce_graphics/contexts/juce_LowLevelGraphicsPostScriptRenderer.h
  9. +0
    -2
      modules/juce_gui_basics/desktop/juce_Displays.h
  10. +1
    -0
      modules/juce_gui_basics/drawables/juce_SVGParser.cpp

+ 7
- 0
examples/Plugins/SamplerPluginDemo.h View File

@@ -551,7 +551,14 @@ inline std::unique_ptr<AudioFormatReader> makeAudioFormatReader (AudioFormatMana
class AudioFormatReaderFactory class AudioFormatReaderFactory
{ {
public: public:
AudioFormatReaderFactory() = default;
AudioFormatReaderFactory (const AudioFormatReaderFactory&) = default;
AudioFormatReaderFactory (AudioFormatReaderFactory&&) = default;
AudioFormatReaderFactory& operator= (const AudioFormatReaderFactory&) = default;
AudioFormatReaderFactory& operator= (AudioFormatReaderFactory&&) = default;
virtual ~AudioFormatReaderFactory() noexcept = default; virtual ~AudioFormatReaderFactory() noexcept = default;
virtual std::unique_ptr<AudioFormatReader> make (AudioFormatManager&) const = 0; virtual std::unique_ptr<AudioFormatReader> make (AudioFormatManager&) const = 0;
virtual std::unique_ptr<AudioFormatReaderFactory> clone() const = 0; virtual std::unique_ptr<AudioFormatReaderFactory> clone() const = 0;
}; };


+ 0
- 1
modules/juce_audio_basics/mpe/juce_MPEZoneLayout.h View File

@@ -41,7 +41,6 @@ struct MPEZone
enum class Type { lower, upper }; enum class Type { lower, upper };
MPEZone() = default; MPEZone() = default;
MPEZone (const MPEZone& other) = default;
MPEZone (Type type, int memberChannels = 0, int perNotePitchbend = 48, int masterPitchbend = 2) MPEZone (Type type, int memberChannels = 0, int perNotePitchbend = 48, int masterPitchbend = 2)
: zoneType (type), : zoneType (type),


+ 3
- 1
modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp View File

@@ -3492,7 +3492,9 @@ private:
struct LockedVSTComSmartPtr struct LockedVSTComSmartPtr
{ {
LockedVSTComSmartPtr() = default; LockedVSTComSmartPtr() = default;
LockedVSTComSmartPtr (const VSTComSmartPtr<T>& ptrIn) : ptr (ptrIn) {}
LockedVSTComSmartPtr (const VSTComSmartPtr<T>& ptrIn) : ptr (ptrIn) {}
LockedVSTComSmartPtr (const LockedVSTComSmartPtr&) = default;
LockedVSTComSmartPtr& operator= (const LockedVSTComSmartPtr&) = default;
~LockedVSTComSmartPtr() ~LockedVSTComSmartPtr()
{ {


+ 1
- 1
modules/juce_audio_processors/format_types/juce_AudioUnitPluginFormat.mm View File

@@ -823,7 +823,7 @@ public:
layoutHasChanged = true; layoutHasChanged = true;
err = AudioUnitSetProperty (audioUnit, kAudioUnitProperty_ElementCount, scope, 0, &newCount, sizeof (newCount)); err = AudioUnitSetProperty (audioUnit, kAudioUnitProperty_ElementCount, scope, 0, &newCount, sizeof (newCount));
jassert (err == noErr);
jassertquiet (err == noErr);
} }
for (int i = 0; i < n; ++i) for (int i = 0; i < n; ++i)


+ 2
- 0
modules/juce_core/containers/juce_ElementComparator.h View File

@@ -35,12 +35,14 @@ template <typename ElementComparator>
struct SortFunctionConverter struct SortFunctionConverter
{ {
SortFunctionConverter (ElementComparator& e) : comparator (e) {} SortFunctionConverter (ElementComparator& e) : comparator (e) {}
SortFunctionConverter (const SortFunctionConverter&) = default;
template <typename Type> template <typename Type>
bool operator() (Type a, Type b) { return comparator.compareElements (a, b) < 0; } bool operator() (Type a, Type b) { return comparator.compareElements (a, b) < 0; }
private: private:
ElementComparator& comparator; ElementComparator& comparator;
SortFunctionConverter& operator= (const SortFunctionConverter&) = delete; SortFunctionConverter& operator= (const SortFunctionConverter&) = delete;
}; };


+ 0
- 3
modules/juce_core/network/juce_URL.h View File

@@ -52,9 +52,6 @@ public:
/** Creates URL referring to a local file on your disk using the file:// scheme. */ /** Creates URL referring to a local file on your disk using the file:// scheme. */
explicit URL (File localFile); explicit URL (File localFile);
/** Destructor. */
~URL() = default;
/** Compares two URLs. /** Compares two URLs.
All aspects of the URLs must be identical for them to match, including any parameters, All aspects of the URLs must be identical for them to match, including any parameters,


+ 0
- 3
modules/juce_dsp/containers/juce_SIMDRegister.h View File

@@ -116,9 +116,6 @@ struct SIMDRegister
/** Constructs an object from a scalar type by broadcasting it to all elements. */ /** Constructs an object from a scalar type by broadcasting it to all elements. */
inline SIMDRegister (Type s) noexcept { *this = s; } inline SIMDRegister (Type s) noexcept { *this = s; }
/** Destructor. */
inline ~SIMDRegister() noexcept = default;
//============================================================================== //==============================================================================
/** Returns the number of elements in this vector. */ /** Returns the number of elements in this vector. */
static constexpr size_t size() noexcept { return SIMDNumElements; } static constexpr size_t size() noexcept { return SIMDNumElements; }


+ 1
- 0
modules/juce_graphics/contexts/juce_LowLevelGraphicsPostScriptRenderer.h View File

@@ -93,6 +93,7 @@ protected:
struct SavedState struct SavedState
{ {
SavedState(); SavedState();
SavedState (const SavedState&) = default;
SavedState& operator= (const SavedState&) = delete; SavedState& operator= (const SavedState&) = delete;
RectangleList<int> clip; RectangleList<int> clip;


+ 0
- 2
modules/juce_gui_basics/desktop/juce_Displays.h View File

@@ -166,8 +166,6 @@ public:
#ifndef DOXYGEN #ifndef DOXYGEN
/** @internal */ /** @internal */
void refresh(); void refresh();
/** @internal */
~Displays() = default;
[[deprecated ("Use the getDisplayForPoint or getDisplayForRect methods instead " [[deprecated ("Use the getDisplayForPoint or getDisplayForRect methods instead "
"as they can deal with converting between logical and physical pixels.")]] "as they can deal with converting between logical and physical pixels.")]]


+ 1
- 0
modules/juce_gui_basics/drawables/juce_SVGParser.cpp View File

@@ -1748,6 +1748,7 @@ private:
deltaAngle = fmod (deltaAngle, MathConstants<double>::twoPi); deltaAngle = fmod (deltaAngle, MathConstants<double>::twoPi);
} }
SVGState (const SVGState&) = default;
SVGState& operator= (const SVGState&) = delete; SVGState& operator= (const SVGState&) = delete;
}; };


Loading…
Cancel
Save