refact: apply review suggestions

Signed-off-by: black-desk <me@black-desk.cn>
This commit is contained in:
black-desk
2023-08-11 14:53:05 +08:00
committed by Comix
parent 4394edd8b8
commit 5183716873
10 changed files with 49 additions and 53 deletions

View File

@ -8,7 +8,7 @@ bool registerObjectToDBus(QObject *o, const QString &path, const QString &interf
{
auto &con = ApplicationManager1DBus::instance().globalServerBus();
if (!con.registerObject(path, interface, o, QDBusConnection::RegisterOption::ExportAdaptors)) {
qFatal() << "register object failed:" << path << interface << con.lastError();
qCritical() << "register object failed:" << path << interface << con.lastError();
} else {
qInfo() << "register object:" << path << interface;
}