]> git.tdb.fi Git - libs/gui.git/blobdiff - source/input/hub.cpp
Use nullptr in place of 0 or NULL
[libs/gui.git] / source / input / hub.cpp
index e7eb0fc115581a1400e603640103e57b620c5d0c..1916126c9ff3f3be420de975bb3b93ea03ad9f55 100644 (file)
@@ -34,7 +34,7 @@ Device *Hub::find_subdevice(DeviceType t, unsigned n)
                                return dev;
                        --n;
                }
-       return 0;
+       return nullptr;
 }
 
 Device *Hub::find_subdevice(const string &n)
@@ -44,7 +44,7 @@ Device *Hub::find_subdevice(const string &n)
        for(Device *d: devices)
                if(Device *dev = d->find_subdevice(n))
                        return dev;
-       return 0;
+       return nullptr;
 }
 
 string Hub::get_button_name(unsigned btn) const