Mark unused parameters

This commit is contained in:
Jonas Kvinge
2020-07-17 16:36:24 +02:00
parent 7afde0e93f
commit 4140163ab2
5 changed files with 11 additions and 2 deletions

View File

@@ -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];
}];

View File

@@ -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) {

View File

@@ -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());
}