Fix most of the issues reported by cppcheck (#290)

This commit is contained in:
Alfredo Ramos
2018-07-28 17:17:50 -05:00
committed by Dharkael
parent 228c4f15e5
commit 7ba02666d1
10 changed files with 19 additions and 19 deletions

View File

@@ -38,8 +38,8 @@ void DBusUtils::connectPrintCapture(QDBusConnection &session, uint id) {
SLOT(captureFailed(uint)));
}
void DBusUtils::checkDBusConnection(const QDBusConnection &c) {
if (!c.isConnected()) {
void DBusUtils::checkDBusConnection(const QDBusConnection &connection) {
if (!connection.isConnected()) {
SystemNotification().sendMessage(tr("Unable to connect via DBus"));
qApp->exit();
}