1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-18 00:54:19 +00:00

Xcode: Silence nullability warning

This commit is contained in:
reuk 2023-04-03 13:55:43 +01:00
parent 587bb79ff1
commit 96fefd0abd
No known key found for this signature in database
GPG key ID: FCB43929F012EE5C

View file

@ -493,10 +493,12 @@ private:
if (error != nil)
return nsStringToJuce (error.localizedDescription);
JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wnullable-to-nonnull-conversion")
if (! [captureSession.get() canAddInput: input])
return "Could not add input to camera session.";
[captureSession.get() addInput: input];
JUCE_END_IGNORE_WARNINGS_GCC_LIKE
return {};
}