diff options
author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2022-09-10 11:14:03 +0200 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2022-09-13 17:07:29 +0200 |
commit | a3204868017d1c7638412bf94257f754151e42e7 (patch) | |
tree | 20b3041db0759aaac43e23c25de0c7d406a54801 /src/location/declarativemaps/qdeclarativegeoroutemodel.cpp | |
parent | 8791d66b4116b4f4a942416ca290274da3653dee (diff) | |
download | qtlocation-a3204868017d1c7638412bf94257f754151e42e7.tar.gz |
Cleanup: use nullptr instead of 0
Change-Id: I2f713a9a88023c5e2b3d779ebe73c821c72dd0e3
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'src/location/declarativemaps/qdeclarativegeoroutemodel.cpp')
-rw-r--r-- | src/location/declarativemaps/qdeclarativegeoroutemodel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/location/declarativemaps/qdeclarativegeoroutemodel.cpp b/src/location/declarativemaps/qdeclarativegeoroutemodel.cpp index c1084bda..0d113959 100644 --- a/src/location/declarativemaps/qdeclarativegeoroutemodel.cpp +++ b/src/location/declarativemaps/qdeclarativegeoroutemodel.cpp @@ -250,7 +250,7 @@ QDeclarativeGeoRoute *QDeclarativeGeoRouteModel::get(int index) { if (index < 0 || index >= routes_.count()) { qmlWarning(this) << QStringLiteral("Index '%1' out of range").arg(index); - return 0; + return nullptr; } return routes_.at(index); } |