solid: replace Q_NULLPTR with nullptr

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2021-08-06 17:57:44 +03:00
parent fc849abd43
commit 9f2e3b54d6
2 changed files with 7 additions and 7 deletions

View file

@ -67,10 +67,10 @@ GeomDevice::GeomDevice(const QString &device)
struct gmesh tree;
::memset(&tree, 0, sizeof(gmesh));
const int geomresult = geom_gettree(&tree);
struct gclass* geomclass = Q_NULLPTR;
struct ggeom* geomgeom = Q_NULLPTR;
struct gprovider* geomprovider = Q_NULLPTR;
struct gconfig* geomconfig = Q_NULLPTR;
struct gclass* geomclass = nullptr;
struct ggeom* geomgeom = nullptr;
struct gprovider* geomprovider = nullptr;
struct gconfig* geomconfig = nullptr;
LIST_FOREACH(geomclass, &tree.lg_class, lg_class) {
LIST_FOREACH(geomgeom, &geomclass->lg_geom, lg_geom) {
LIST_FOREACH(geomprovider, &geomgeom->lg_provider, lg_provider) {

View file

@ -78,9 +78,9 @@ QStringList GeomManager::allDevices()
struct gmesh tree;
::memset(&tree, 0, sizeof(gmesh));
const int geomresult = geom_gettree(&tree);
struct gclass* geomclass = Q_NULLPTR;
struct ggeom* geomgeom = Q_NULLPTR;
struct gprovider* geomprovider = Q_NULLPTR;
struct gclass* geomclass = nullptr;
struct ggeom* geomgeom = nullptr;
struct gprovider* geomprovider = nullptr;
// NOTE: keep in sync with kdelibs/solid/solid/backends/geom/geomdevice.cpp
LIST_FOREACH(geomclass, &tree.lg_class, lg_class) {
// not interested in devices made up by providers such as labels