mirror of
https://github.com/AxioDL/boo.git
synced 2025-12-14 07:36:26 +00:00
General: Make use of nullptr where applicable
This commit is contained in:
@@ -99,8 +99,8 @@ DBusConnection* RegisterDBus(const char* appName, bool& isFirst) {
|
||||
fmt::print(stderr, fmt("DBus Connection Error ({})\n"), err.message);
|
||||
dbus_error_free(&err);
|
||||
}
|
||||
if (NULL == conn)
|
||||
return NULL;
|
||||
if (conn == nullptr)
|
||||
return nullptr;
|
||||
|
||||
/* request our name on the bus and check for errors */
|
||||
int ret = dbus_bus_request_name(conn, fmt::format(fmt("boo.{}.unique"), appName).c_str(),
|
||||
@@ -109,7 +109,7 @@ DBusConnection* RegisterDBus(const char* appName, bool& isFirst) {
|
||||
fmt::print(stderr, fmt("DBus Name Error ({})\n"), err.message);
|
||||
dbus_error_free(&err);
|
||||
dbus_connection_close(conn);
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
if (DBUS_REQUEST_NAME_REPLY_PRIMARY_OWNER != ret)
|
||||
isFirst = false;
|
||||
|
||||
Reference in New Issue
Block a user