Explorar o código

vlc extension: fix long-standing compilation warning

Felix Paul Kühne %!s(int64=9) %!d(string=hai) anos
pai
achega
1984f8773a
Modificáronse 2 ficheiros con 6 adicións e 1 borrados
  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];