on xenial help sign in
Prefer nullptr to 0
cfb1731Gerry Boland
src/libunity8-utils/abstractdbusservicemonitor.cpp+1−1
@@ -32,7 +32,7 @@ AbstractDBusServiceMonitor::AbstractDBusServiceMonitor(const QString &service, c
32 , m_path(path)
32 , m_path(path)
33 , m_interface(interface)
33 , m_interface(interface)
34 , m_watcher(new QDBusServiceWatcher(service, QDBusConnection::sessionBus()))
34 , m_watcher(new QDBusServiceWatcher(service, QDBusConnection::sessionBus()))
35− , m_dbusInterface(0)
35+ , m_dbusInterface(nullptr)
36{
36{
37 connect(m_watcher, &QDBusServiceWatcher::serviceRegistered, this, &AbstractDBusServiceMonitor::createInterface);
37 connect(m_watcher, &QDBusServiceWatcher::serviceRegistered, this, &AbstractDBusServiceMonitor::createInterface);
38 connect(m_watcher, &QDBusServiceWatcher::serviceUnregistered, this, &AbstractDBusServiceMonitor::destroyInterface);
38 connect(m_watcher, &QDBusServiceWatcher::serviceUnregistered, this, &AbstractDBusServiceMonitor::destroyInterface);