Просмотр исходного кода

MacOSX/Framework/VLCMediaListAspect: Code cleanup and use Objective-C 2.0 @property. (Patch by Enrique Osuna).

Pierre d'Herbemont 17 лет назад
Родитель
Сommit
6b90d3cf13
2 измененных файлов с 6 добавлено и 6 удалено
  1. 1 1
      Headers/Public/VLCMediaListAspect.h
  2. 5 5
      Sources/VLCMediaListAspect.m

+ 1 - 1
Headers/Public/VLCMediaListAspect.h

@@ -41,7 +41,7 @@
 {
     void * p_mlv;                //< Internal instance of media list view
     NSMutableArray * cachedNode;
-    VLCMediaList *parentMediaList;
+    VLCMediaList * parentMediaList;
     BOOL ownHisMediaList;
 }
 - (VLCMedia *)mediaAtIndex:(int)index;

+ 5 - 5
Sources/VLCMediaListAspect.m

@@ -76,7 +76,7 @@
 @end
 
 /* libvlc event callback */
-static void HandleMediaListViewItemAdded(const libvlc_event_t *event, void *user_data)
+static void HandleMediaListViewItemAdded(const libvlc_event_t * event, void * user_data)
 {
     NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
     id self = user_data;
@@ -111,7 +111,7 @@ static void HandleMediaListViewItemDeleted( const libvlc_event_t * event, void *
 }
 - (NSString *)description
 {
-    NSMutableString *content = [NSMutableString string];
+    NSMutableString * content = [NSMutableString string];
     int i;
     for( i = 0; i < [self count]; i++)
     {
@@ -124,7 +124,7 @@ static void HandleMediaListViewItemDeleted( const libvlc_event_t * event, void *
 {
     libvlc_exception_t p_e;
     libvlc_exception_init( &p_e );
-    libvlc_media_descriptor_t *p_md = libvlc_media_list_view_item_at_index( p_mlv, index, &p_e );
+    libvlc_media_descriptor_t * p_md = libvlc_media_list_view_item_at_index( p_mlv, index, &p_e );
     quit_on_exception( &p_e );
     
     // Returns local object for media descriptor, searchs for user data first.  If not found it creates a 
@@ -136,7 +136,7 @@ static void HandleMediaListViewItemDeleted( const libvlc_event_t * event, void *
 {
     libvlc_exception_t p_e;
     libvlc_exception_init( &p_e );
-    libvlc_media_list_view_t *p_sub_mlv = libvlc_media_list_view_children_at_index( p_mlv, index, &p_e );
+    libvlc_media_list_view_t * p_sub_mlv = libvlc_media_list_view_children_at_index( p_mlv, index, &p_e );
     quit_on_exception( &p_e );
 
     if( !p_sub_mlv )
@@ -237,7 +237,7 @@ static void HandleMediaListViewItemDeleted( const libvlc_event_t * event, void *
     libvlc_exception_t e;
     libvlc_exception_init( &e );
 
-    libvlc_event_manager_t *p_em = libvlc_media_list_event_manager( p_mlv, &e );
+    libvlc_event_manager_t * p_em = libvlc_media_list_event_manager( p_mlv, &e );
 
     /* Add internal callback */
     libvlc_event_attach( p_em, libvlc_MediaListViewItemAdded,   HandleMediaListViewItemAdded,   self, &e );