Browse Source

Optional: Make operator bool() explicit

v7.0.9
reuk 3 years ago
parent
commit
b46edc31ce
No known key found for this signature in database GPG Key ID: 9ADCD339CFC98A11
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      modules/juce_audio_plugin_client/AAX/juce_AAX_Wrapper.cpp
  2. +1
    -1
      modules/juce_core/containers/juce_Optional.h

+ 1
- 1
modules/juce_audio_plugin_client/AAX/juce_AAX_Wrapper.cpp View File

@@ -1073,7 +1073,7 @@ namespace AAXClasses
return transport.IsTransportPlaying (&isPlaying) == AAX_SUCCESS && isPlaying;
}());
info.setIsRecording (recordingState.get());
info.setIsRecording (recordingState.get().orFallback (false));
const auto optionalTimeInSamples = [&info, &transport]
{


+ 1
- 1
modules/juce_core/containers/juce_Optional.h View File

@@ -126,7 +126,7 @@ public:
decltype (auto) operator* () { return opt.operator* (); }
decltype (auto) operator* () const { return opt.operator* (); }
operator bool() const noexcept { return opt.has_value(); }
explicit operator bool() const noexcept { return opt.has_value(); }
bool hasValue() const noexcept { return opt.has_value(); }
template <typename U>


Loading…
Cancel
Save