diff options
author | Paolo Angelelli <paolo.angelelli@qt.io> | 2018-04-17 14:25:00 +0200 |
---|---|---|
committer | Paolo Angelelli <paolo.angelelli@qt.io> | 2018-04-17 13:36:28 +0000 |
commit | 9277ad55ad1a76492a3985460569d0a6fd15b08a (patch) | |
tree | 248152adf6a483d08f3b413a725e7027fa5aaf6c /src/location/declarativemaps/qdeclarativegeomap.cpp | |
parent | 8e59256ac2dd92709be880ec91ec30bc6c0ff67b (diff) | |
download | qtlocation-9277ad55ad1a76492a3985460569d0a6fd15b08a.tar.gz |
Fix coding style in QDeclarativeGeoMapItemView
Replace trailing underscore with leading m_
Change-Id: I9c22beefa1819a33ff49dc26f4601af04eecaf58
Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'src/location/declarativemaps/qdeclarativegeomap.cpp')
-rw-r--r-- | src/location/declarativemaps/qdeclarativegeomap.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/location/declarativemaps/qdeclarativegeomap.cpp b/src/location/declarativemaps/qdeclarativegeomap.cpp index 24a56db5..f8218604 100644 --- a/src/location/declarativemaps/qdeclarativegeomap.cpp +++ b/src/location/declarativemaps/qdeclarativegeomap.cpp @@ -1989,11 +1989,11 @@ void QDeclarativeGeoMap::removeMapItemGroup(QDeclarativeGeoMapItemGroup *itemGro */ void QDeclarativeGeoMap::removeMapItemView(QDeclarativeGeoMapItemView *itemView) { - if (!itemView || itemView->map_ != this) // can't remove a view that is already added to another map + if (!itemView || itemView->m_map != this) // can't remove a view that is already added to another map return; itemView->removeInstantiatedItems(); - itemView->map_ = 0; + itemView->m_map = 0; // it can be removed from the list at this point, since no operations that require a Map have to be done // anymore on destruction. m_mapViews.removeOne(itemView); @@ -2010,7 +2010,7 @@ void QDeclarativeGeoMap::removeMapItemView(QDeclarativeGeoMapItemView *itemView) */ void QDeclarativeGeoMap::addMapItemView(QDeclarativeGeoMapItemView *itemView) { - if (!itemView || itemView->map_) // can't add a view twice + if (!itemView || itemView->m_map) // can't add a view twice return; // Not appending it to m_mapViews because it seems unnecessary even if the |