Bläddra i källkod

vlc extension: fix long-standing compilation warning

Felix Paul Kühne 9 år sedan
förälder
incheckning
1984f8773a
2 ändrade filer med 6 tillägg och 1 borttagningar
  1. 1 0
      Headers/Public/VLCExtension.h
  2. 5 1
      Sources/VLCExtension.m

+ 1 - 0
Headers/Public/VLCExtension.h

@@ -21,6 +21,7 @@
  *****************************************************************************/
 
 #import <Cocoa/Cocoa.h>
+#import <vlc_extensions.h>
 
 @interface VLCExtension : NSObject
 

+ 5 - 1
Sources/VLCExtension.m

@@ -21,7 +21,6 @@
  *****************************************************************************/
 
 #import "VLCExtension.h"
-#import <vlc_extensions.h>
 
 @interface VLCExtension ()
 {
@@ -35,6 +34,11 @@
     return [NSString stringWithFormat:@"VLC Extension %@", [self name]];
 }
 
+- (instancetype)init
+{
+    return [self initWithInstance:NULL];
+}
+
 - (instancetype)initWithInstance:(struct extension_t *)instance
 {
     self = [super init];