Q_UNUSED: Sprinkle around

This commit is contained in:
Markus Goetz 2018-04-13 17:15:07 +02:00 committed by Roeland Jago Douma
parent 27826ddee0
commit de1032ebd7
No known key found for this signature in database
GPG key ID: F941078878347C0C
2 changed files with 8 additions and 0 deletions

View file

@ -30,6 +30,7 @@
// Only possible in later versions, we're not up to date here.
- (BOOL)updaterMayCheckForUpdates:(SUUpdater *)bundle
{
Q_UNUSED(bundle)
qCDebug(OCC::lcUpdater) << "may check: YES";
return YES;
}
@ -37,17 +38,22 @@
// Sent when a valid update is found by the update driver.
- (void)updater:(SUUpdater *)updater didFindValidUpdate:(SUAppcastItem *)update
{
Q_UNUSED(updater)
Q_UNUSED(update)
}
// Sent when a valid update is not found.
// Does not seem to get called ever.
- (void)updaterDidNotFindUpdate:(SUUpdater *)update
{
Q_UNUSED(update)
}
// Sent immediately before installing the specified update.
- (void)updater:(SUUpdater *)updater willInstallUpdate:(SUAppcastItem *)update
{
Q_UNUSED(updater)
Q_UNUSED(update)
}
// Tried implementing those methods, but they never ever seem to get called

View file

@ -896,6 +896,8 @@ void DetermineAuthTypeJob::start()
get->setFollowRedirects(false);
}
#else
Q_UNUSED(this)
Q_UNUSED(get)
Q_UNUSED(target)
#endif
});