From bdcfdecc6562b8c9af10c7869603235116232518 Mon Sep 17 00:00:00 2001 From: jules Date: Sun, 13 May 2012 14:04:38 +0100 Subject: [PATCH] Minor addition to OptionalScopedPointer. Documentation fix. --- modules/juce_audio_formats/codecs/juce_WavAudioFormat.h | 2 -- modules/juce_core/memory/juce_OptionalScopedPointer.h | 5 +++++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/modules/juce_audio_formats/codecs/juce_WavAudioFormat.h b/modules/juce_audio_formats/codecs/juce_WavAudioFormat.h index c5d4b37b79..75fba963cb 100644 --- a/modules/juce_audio_formats/codecs/juce_WavAudioFormat.h +++ b/modules/juce_audio_formats/codecs/juce_WavAudioFormat.h @@ -94,8 +94,6 @@ public: /** Metadata property name used by wav readers and writers for adding a BWAV chunk to the file. - This is a - @see AudioFormatReader::metadataValues, createWriterFor */ static const char* const bwavCodingHistory; diff --git a/modules/juce_core/memory/juce_OptionalScopedPointer.h b/modules/juce_core/memory/juce_OptionalScopedPointer.h index 113b74ba16..10b2526f50 100644 --- a/modules/juce_core/memory/juce_OptionalScopedPointer.h +++ b/modules/juce_core/memory/juce_OptionalScopedPointer.h @@ -127,6 +127,11 @@ public: object.release(); } + /** Returns true if the target object will be deleted when this pointer + object is deleted. + */ + bool willDeleteObject() const noexcept { return shouldDelete; } + //============================================================================== /** Swaps this object with another OptionalScopedPointer. The two objects simply exchange their states.