It is no longer necessary to namespace exit function.

This commit is contained in:
Andrius Štikonas 2022-02-06 01:27:09 +00:00
parent 4ef17463ff
commit fb11a02d24
1 changed files with 2 additions and 2 deletions

View File

@ -44,11 +44,11 @@
ExternalCommandHelper::ExternalCommandHelper()
{
if (!QDBusConnection::systemBus().registerObject(QStringLiteral("/Helper"), this, QDBusConnection::ExportAllSlots | QDBusConnection::ExportAllSignals)) {
::exit(-1);
exit(-1);
}
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