Mark unused parameters
This commit is contained in:
@@ -159,7 +159,7 @@ QDebug operator<<(QDebug dbg, NSObject* object) {
|
||||
- (void)application:(NSApplication*)app openFiles:(NSArray*)filenames {
|
||||
|
||||
qLog(Debug) << "Wants to open:" << filenames;
|
||||
[filenames enumerateObjectsUsingBlock:^(id object, NSUInteger idx, BOOL* stop) {
|
||||
[filenames enumerateObjectsUsingBlock:^(id object, NSUInteger, BOOL*) {
|
||||
[self application:app openFile:(NSString*)object];
|
||||
}];
|
||||
|
||||
|
||||
@@ -47,6 +47,10 @@ void MacFSListener::Init() { run_loop_ = CFRunLoopGetCurrent(); }
|
||||
|
||||
void MacFSListener::EventStreamCallback(ConstFSEventStreamRef stream, void* user_data, size_t num_events, void* event_paths, const FSEventStreamEventFlags event_flags[], const FSEventStreamEventId event_ids[]) {
|
||||
|
||||
Q_UNUSED(stream);
|
||||
Q_UNUSED(event_flags);
|
||||
Q_UNUSED(event_ids);
|
||||
|
||||
MacFSListener* me = reinterpret_cast<MacFSListener*>(user_data);
|
||||
char** paths = reinterpret_cast<char**>(event_paths);
|
||||
for (size_t i = 0; i < num_events; ++i) {
|
||||
|
||||
@@ -206,5 +206,6 @@ void MacSystemTrayIcon::ClearNowPlaying() {
|
||||
}
|
||||
|
||||
void MacSystemTrayIcon::SetNowPlaying(const Song& song, const QUrl& cover_url) {
|
||||
Q_UNUSED(cover_url);
|
||||
p_->ShowNowPlaying(song.artist(), song.PrettyTitle());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user