Fix missing paired parentheses in HAL media backend.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/155/head
Slávek Banko 5 years ago
parent 32381684a2
commit f9895a2b80
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -1651,7 +1651,7 @@ TQStringVariantMap HALBackend::unmount(const TQString &id)
return result;
}
if (!medium->isMounted())
if (!medium->isMounted()) {
result["result"] = true;
return result;
}
@ -1834,7 +1834,7 @@ TQStringVariantMap HALBackend::unlock(const TQString &id, const TQString &passwo
return result;
}
if (!medium->isEncrypted() || !medium->clearDeviceUdi().isNull())
if (!medium->isEncrypted() || !medium->clearDeviceUdi().isNull()) {
result["result"] = true;
return result;
}
@ -1845,7 +1845,7 @@ TQStringVariantMap HALBackend::unlock(const TQString &id, const TQString &passwo
DBusError error;
kdDebug() << "Setting up " << udi << " for crypto\n" <<endl;
msg = dbus_message_new_method_call ("org.freedesktop.Hal", udi,
"org.freedesktop.Hal.Device.Volume.Crypto",
"Setup");
@ -1903,7 +1903,7 @@ TQStringVariantMap HALBackend::lock(const TQString &id)
return result;
}
if (!medium->isEncrypted() || !medium->clearDeviceUdi().isNull())
if (!medium->isEncrypted() || !medium->clearDeviceUdi().isNull()) {
result["result"] = true;
return result;
}
@ -1914,7 +1914,7 @@ TQStringVariantMap HALBackend::lock(const TQString &id)
DBusError error;
kdDebug() << "Tear down " << udi << "\n" <<endl;
msg = dbus_message_new_method_call ("org.freedesktop.Hal", udi,
"org.freedesktop.Hal.Device.Volume.Crypto",
"Teardown");

Loading…
Cancel
Save