It is no longer necessary to namespace exit function.
This commit is contained in:
parent
4ef17463ff
commit
fb11a02d24
|
@ -44,11 +44,11 @@
|
||||||
ExternalCommandHelper::ExternalCommandHelper()
|
ExternalCommandHelper::ExternalCommandHelper()
|
||||||
{
|
{
|
||||||
if (!QDBusConnection::systemBus().registerObject(QStringLiteral("/Helper"), this, QDBusConnection::ExportAllSlots | QDBusConnection::ExportAllSignals)) {
|
if (!QDBusConnection::systemBus().registerObject(QStringLiteral("/Helper"), this, QDBusConnection::ExportAllSlots | QDBusConnection::ExportAllSignals)) {
|
||||||
::exit(-1);
|
exit(-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!QDBusConnection::systemBus().registerService(QStringLiteral("org.kde.kpmcore.helperinterface"))) {
|
if (!QDBusConnection::systemBus().registerService(QStringLiteral("org.kde.kpmcore.helperinterface"))) {
|
||||||
::exit(-1);
|
exit(-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
// we know this service must be registered already as DBus policy blocks calls from anyone else
|
// we know this service must be registered already as DBus policy blocks calls from anyone else
|
||||||
|
|
Loading…
Reference in New Issue