mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-24 02:42:48 +00:00
solid: replace Q_NULLPTR with nullptr
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
fc849abd43
commit
9f2e3b54d6
2 changed files with 7 additions and 7 deletions
|
@ -67,10 +67,10 @@ GeomDevice::GeomDevice(const QString &device)
|
||||||
struct gmesh tree;
|
struct gmesh tree;
|
||||||
::memset(&tree, 0, sizeof(gmesh));
|
::memset(&tree, 0, sizeof(gmesh));
|
||||||
const int geomresult = geom_gettree(&tree);
|
const int geomresult = geom_gettree(&tree);
|
||||||
struct gclass* geomclass = Q_NULLPTR;
|
struct gclass* geomclass = nullptr;
|
||||||
struct ggeom* geomgeom = Q_NULLPTR;
|
struct ggeom* geomgeom = nullptr;
|
||||||
struct gprovider* geomprovider = Q_NULLPTR;
|
struct gprovider* geomprovider = nullptr;
|
||||||
struct gconfig* geomconfig = Q_NULLPTR;
|
struct gconfig* geomconfig = nullptr;
|
||||||
LIST_FOREACH(geomclass, &tree.lg_class, lg_class) {
|
LIST_FOREACH(geomclass, &tree.lg_class, lg_class) {
|
||||||
LIST_FOREACH(geomgeom, &geomclass->lg_geom, lg_geom) {
|
LIST_FOREACH(geomgeom, &geomclass->lg_geom, lg_geom) {
|
||||||
LIST_FOREACH(geomprovider, &geomgeom->lg_provider, lg_provider) {
|
LIST_FOREACH(geomprovider, &geomgeom->lg_provider, lg_provider) {
|
||||||
|
|
|
@ -78,9 +78,9 @@ QStringList GeomManager::allDevices()
|
||||||
struct gmesh tree;
|
struct gmesh tree;
|
||||||
::memset(&tree, 0, sizeof(gmesh));
|
::memset(&tree, 0, sizeof(gmesh));
|
||||||
const int geomresult = geom_gettree(&tree);
|
const int geomresult = geom_gettree(&tree);
|
||||||
struct gclass* geomclass = Q_NULLPTR;
|
struct gclass* geomclass = nullptr;
|
||||||
struct ggeom* geomgeom = Q_NULLPTR;
|
struct ggeom* geomgeom = nullptr;
|
||||||
struct gprovider* geomprovider = Q_NULLPTR;
|
struct gprovider* geomprovider = nullptr;
|
||||||
// NOTE: keep in sync with kdelibs/solid/solid/backends/geom/geomdevice.cpp
|
// NOTE: keep in sync with kdelibs/solid/solid/backends/geom/geomdevice.cpp
|
||||||
LIST_FOREACH(geomclass, &tree.lg_class, lg_class) {
|
LIST_FOREACH(geomclass, &tree.lg_class, lg_class) {
|
||||||
// not interested in devices made up by providers such as labels
|
// not interested in devices made up by providers such as labels
|
||||||
|
|
Loading…
Add table
Reference in a new issue