mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-09 23:34:20 +00:00
Add a base clang-tidy configuration
This commit is contained in:
parent
0dfaa98e86
commit
9b041f3d74
73 changed files with 484 additions and 279 deletions
|
|
@ -52,19 +52,19 @@ struct CameraDevice::Pimpl
|
|||
}
|
||||
|
||||
[AVCaptureDevice requestAccessForMediaType: AVMediaTypeVideo
|
||||
completionHandler: ^(BOOL granted)
|
||||
completionHandler: ^([[maybe_unused]] BOOL granted)
|
||||
{
|
||||
// Access to video is required for camera to work,
|
||||
// black images will be produced otherwise!
|
||||
jassertquiet (granted);
|
||||
jassert (granted);
|
||||
}];
|
||||
|
||||
[AVCaptureDevice requestAccessForMediaType: AVMediaTypeAudio
|
||||
completionHandler: ^(BOOL granted)
|
||||
completionHandler: ^([[maybe_unused]] BOOL granted)
|
||||
{
|
||||
// Access to audio is required for camera to work,
|
||||
// silence will be produced otherwise!
|
||||
jassertquiet (granted);
|
||||
jassert (granted);
|
||||
}];
|
||||
|
||||
captureSession.startSessionForDeviceWithId (cameraId);
|
||||
|
|
|
|||
|
|
@ -379,7 +379,7 @@ private:
|
|||
{
|
||||
NSError* error = nil;
|
||||
|
||||
int successCount = 0;
|
||||
[[maybe_unused]] int successCount = 0;
|
||||
|
||||
for (NSString* key : assetKeys.get())
|
||||
{
|
||||
|
|
@ -409,7 +409,7 @@ private:
|
|||
}
|
||||
}
|
||||
|
||||
jassertquiet (successCount == (int) [assetKeys.get() count]);
|
||||
jassert (successCount == (int) [assetKeys.get() count]);
|
||||
preparePlayerItem();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue