[vlc-commits] macosx: Call on super in prepareForReuse

Marvin Scholz git at videolan.org
Wed May 15 16:21:48 CEST 2019


vlc | branch: master | Marvin Scholz <epirat07 at gmail.com> | Wed May 15 16:20:54 2019 +0200| [bcf766c1b04df5a7e2a25e3d9601159e0bf37e21] | committer: Marvin Scholz

macosx: Call on super in prepareForReuse

Per the documentation: "Subclasses should call super at some
point in their implementation."

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=bcf766c1b04df5a7e2a25e3d9601159e0bf37e21
---

 modules/gui/macosx/library/VLCLibraryAlbumTableCellView.m | 1 +
 modules/gui/macosx/library/VLCLibraryTableCellView.m      | 1 +
 2 files changed, 2 insertions(+)

diff --git a/modules/gui/macosx/library/VLCLibraryAlbumTableCellView.m b/modules/gui/macosx/library/VLCLibraryAlbumTableCellView.m
index 98eb6e070b..a126e63b5b 100644
--- a/modules/gui/macosx/library/VLCLibraryAlbumTableCellView.m
+++ b/modules/gui/macosx/library/VLCLibraryAlbumTableCellView.m
@@ -58,6 +58,7 @@ static NSString *VLCAudioLibraryCellIdentifier = @"VLCAudioLibraryCellIdentifier
 
 - (void)prepareForReuse
 {
+    [super prepareForReuse];
     self.representedImageView.image = nil;
     self.albumNameTextField.stringValue = @"";
     self.yearTextField.stringValue = @"";
diff --git a/modules/gui/macosx/library/VLCLibraryTableCellView.m b/modules/gui/macosx/library/VLCLibraryTableCellView.m
index 26640ce72c..cccd6adee5 100644
--- a/modules/gui/macosx/library/VLCLibraryTableCellView.m
+++ b/modules/gui/macosx/library/VLCLibraryTableCellView.m
@@ -46,6 +46,7 @@
 
 - (void)prepareForReuse
 {
+    [super prepareForReuse];
     self.representedImageView.image = nil;
     self.primaryTitleTextField.hidden = YES;
     self.secondaryTitleTextField.hidden = YES;



More information about the vlc-commits mailing list