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

UIViewComponentPeer: Fix warning

This commit is contained in:
reuk 2022-10-20 17:58:46 +01:00
parent 8d6169fbf5
commit df45aaeb7b
No known key found for this signature in database
GPG key ID: 9ADCD339CFC98A11

View file

@ -1926,7 +1926,7 @@ void Desktop::allowedOrientationsChanged()
{
UIApplication* sharedApplication = [UIApplication sharedApplication];
const NSUniquePtr<UIWindowSceneGeometryPreferences> preferences { [UIWindowSceneGeometryPreferencesIOS alloc] };
const NSUniquePtr<UIWindowSceneGeometryPreferencesIOS> preferences { [UIWindowSceneGeometryPreferencesIOS alloc] };
[preferences.get() initWithInterfaceOrientations: Orientations::getSupportedOrientations()];
for (UIScene* scene in [sharedApplication connectedScenes])