[vlc-commits] [Git][videolan/vlc][master] macosx: Fix warning about unused getter results in OpenIntf
    Jean-Baptiste Kempf (@jbk) 
    gitlab at videolan.org
       
    Sat Jul 22 14:50:53 UTC 2023
    
    
  
Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC
Commits:
ab56d042 by Claudio Cambra at 2023-07-22T13:59:41+00:00
macosx: Fix warning about unused getter results in OpenIntf
Signed-off-by: Claudio Cambra <developer at claudiocambra.com>
- - - - -
1 changed file:
- modules/gui/macosx/main/VLCMain.m
Changes:
=====================================
modules/gui/macosx/main/VLCMain.m
=====================================
@@ -145,8 +145,11 @@ int OpenIntf (vlc_object_t *p_this)
         msg_Dbg(p_intf, "Starting macosx interface");
 
         @try {
-            VLCApplication.sharedApplication;
-            VLCMain.sharedInstance;
+            VLCApplication * const application = VLCApplication.sharedApplication;
+            NSCAssert(application != nil, @"VLCApplication must not be nil");
+
+            VLCMain * const main = VLCMain.sharedInstance;
+            NSCAssert(main != nil, @"VLCMain must not be nil");
 
             msg_Dbg(p_intf, "Finished loading macosx interface");
             return VLC_SUCCESS;
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/ab56d042a34cbdff2e3b0721107bef92d856aff5
-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/ab56d042a34cbdff2e3b0721107bef92d856aff5
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
    
    
More information about the vlc-commits
mailing list