mirror of
https://github.com/fergalmoran/flameshot.git
synced 2025-12-25 03:11:43 +00:00
Fix most of the issues reported by cppcheck (#290)
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user