[vlc-commits] macosx dialog provider: fix compilation warnings
Felix Paul Kühne
git at videolan.org
Thu Mar 6 12:18:16 CET 2014
vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Thu Mar 6 12:18:14 2014 +0100| [c0478884abf37ce740c84847a4623648275a92cf] | committer: Felix Paul Kühne
macosx dialog provider: fix compilation warnings
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c0478884abf37ce740c84847a4623648275a92cf
---
modules/gui/macosx_dialog_provider/VLCUIWidgets.h | 2 +-
modules/gui/macosx_dialog_provider/dialogProvider.m | 4 +++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/modules/gui/macosx_dialog_provider/VLCUIWidgets.h b/modules/gui/macosx_dialog_provider/VLCUIWidgets.h
index 70268bf..e003038 100644
--- a/modules/gui/macosx_dialog_provider/VLCUIWidgets.h
+++ b/modules/gui/macosx_dialog_provider/VLCUIWidgets.h
@@ -56,7 +56,7 @@
@end
- at interface VLCDialogList : NSTableView
+ at interface VLCDialogList : NSTableView <NSTableViewDataSource>
{
extension_widget_t *widget;
NSMutableArray *contentArray;
diff --git a/modules/gui/macosx_dialog_provider/dialogProvider.m b/modules/gui/macosx_dialog_provider/dialogProvider.m
index edb8a58..5ee71a7 100644
--- a/modules/gui/macosx_dialog_provider/dialogProvider.m
+++ b/modules/gui/macosx_dialog_provider/dialogProvider.m
@@ -306,6 +306,8 @@ bool checkProgressPanel (void *priv)
return ret;
}
+ at interface VLCDialogDisplayer() <NSWindowDelegate>
+ at end
@implementation VLCDialogDisplayer
- (void)dealloc
@@ -371,7 +373,7 @@ bool checkProgressPanel (void *priv)
defaultButton:[dialog objectForKey:@"yes"]
alternateButton:[dialog objectForKey:@"no"]
otherButton:[dialog objectForKey:@"cancel"]
- informativeTextWithFormat:[dialog objectForKey:@"message"]];
+ informativeTextWithFormat:@"%@", [dialog objectForKey:@"message"]];
[alert setAlertStyle:NSInformationalAlertStyle];
alertRet = [alert runModal];
More information about the vlc-commits
mailing list