summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2010-11-26 17:41:07 (GMT)
committerThiago Macieira <thiago.macieira@nokia.com>2010-11-26 21:02:18 (GMT)
commitdc23fd546163edb7ff4395f44217b5cb2600004a (patch)
tree37f494c22bf86888424b195bc2e6ef9d68529b0e /src/plugins
parentb284975435f80eba7bf6d1edd21987dcee134e86 (diff)
downloadQt-dc23fd546163edb7ff4395f44217b5cb2600004a.zip
Qt-dc23fd546163edb7ff4395f44217b5cb2600004a.tar.gz
Qt-dc23fd546163edb7ff4395f44217b5cb2600004a.tar.bz2
Fix warnings related to unused variables.
Just add some Q_UNUSED for parameters or remove the variable we don't need for the others. Reviewed-by: Trust Me
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/bearer/connman/qconnmanservice_linux.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/plugins/bearer/connman/qconnmanservice_linux.cpp b/src/plugins/bearer/connman/qconnmanservice_linux.cpp
index 952a444..0545422 100644
--- a/src/plugins/bearer/connman/qconnmanservice_linux.cpp
+++ b/src/plugins/bearer/connman/qconnmanservice_linux.cpp
@@ -216,7 +216,6 @@ void QConnmanManagerInterface::registerCounter(const QString &path, quint32 inte
{ QDBusReply<QList<QDBusObjectPath> > reply = this->call(QLatin1String("RegisterCounter"),
QVariant::fromValue(path),
QVariant::fromValue(interval));
- bool ok = true;
if(reply.error().type() == QDBusError::InvalidArgs) {
qWarning() << reply.error().message();
}
@@ -225,7 +224,6 @@ void QConnmanManagerInterface::registerCounter(const QString &path, quint32 inte
void QConnmanManagerInterface::unregisterCounter(const QString &path)
{ QDBusReply<QList<QDBusObjectPath> > reply = this->call(QLatin1String("UnregisterCounter"),
QVariant::fromValue(path));
- bool ok = true;
if(reply.error().type() == QDBusError::InvalidArgs) {
qWarning() << reply.error().message();
}