Commit 763235f4 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

Fix warnings

parent 931ae453
......@@ -171,10 +171,10 @@ void PackageKitResource::fetchDetails()
backend()->fetchDetails(pkgid);
auto trans = PackageKit::Daemon::installPackages({ pkgid }, PackageKit::Transaction::TransactionFlagSimulate);
connect(trans, &PackageKit::Transaction::package, this, [trans](PackageKit::Transaction::Info info, const QString &packageID, const QString &summary) {
connect(trans, &PackageKit::Transaction::package, this, [trans](PackageKit::Transaction::Info /*info*/, const QString &/*packageID*/, const QString &/*summary*/) {
trans->setProperty("dependencies", trans->property("dependencies").toUInt() + 1);
});
connect(trans, &PackageKit::Transaction::finished, this, [this, trans](PackageKit::Transaction::Exit status) {
connect(trans, &PackageKit::Transaction::finished, this, [this, trans](PackageKit::Transaction::Exit /*status*/) {
auto deps = trans->property("dependencies").toUInt();
if (deps != m_dependenciesCount) {
m_dependenciesCount = deps;
......
......@@ -30,25 +30,25 @@ SnapReviewsBackend::SnapReviewsBackend(SnapBackend* parent)
: AbstractReviewsBackend(parent)
{}
void SnapReviewsBackend::fetchReviews(AbstractResource* app, int page)
void SnapReviewsBackend::fetchReviews(AbstractResource* /*app*/, int /*page*/)
{
emit reviewsReady({}, {}, false);
}
Rating* SnapReviewsBackend::ratingForApplication(AbstractResource* app) const
Rating* SnapReviewsBackend::ratingForApplication(AbstractResource* /*app*/) const
{
return nullptr;
}
void SnapReviewsBackend::submitUsefulness(Review* r, bool useful)
void SnapReviewsBackend::submitUsefulness(Review* /*r*/, bool /*useful*/)
{
}
void SnapReviewsBackend::submitReview(AbstractResource* res, const QString& a, const QString& b, const QString& c)
void SnapReviewsBackend::submitReview(AbstractResource* /*res*/, const QString& /*a*/, const QString& /*b*/, const QString& /*c*/)
{
}
bool SnapReviewsBackend::isResourceSupported(AbstractResource* res) const
bool SnapReviewsBackend::isResourceSupported(AbstractResource* /*res*/) const
{
return true;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment