diff options
author | Cristian Adam <cristian.adam@nokia.com> | 2012-05-08 09:11:31 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-05-16 07:04:42 +0200 |
commit | d0f223b6ad20f628698c6a01b9fd8e0715d271d2 (patch) | |
tree | 2a6a3c0899395fb8c0e8dad2f95a025ee7cd00a9 /src/location/maps/qgeoroutingmanager.cpp | |
parent | e057680b996d6854c9aee8f6504acc873f0e65ac (diff) | |
download | qtlocation-d0f223b6ad20f628698c6a01b9fd8e0715d271d2.tar.gz |
Removed spurious pointer check before deletion
In C++ it is perfectly valid to delete a null pointer.
http://www.parashift.com/c++-faq-lite/freestore-mgmt.html#faq-16.8
Change-Id: I60dc123b01e1ef015751143274579024e4c0becf
Reviewed-by: Alex Wilson <alex.wilson@nokia.com>
Diffstat (limited to 'src/location/maps/qgeoroutingmanager.cpp')
-rw-r--r-- | src/location/maps/qgeoroutingmanager.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/location/maps/qgeoroutingmanager.cpp b/src/location/maps/qgeoroutingmanager.cpp index dde8187f..4e279f6a 100644 --- a/src/location/maps/qgeoroutingmanager.cpp +++ b/src/location/maps/qgeoroutingmanager.cpp @@ -383,8 +383,7 @@ QGeoRoutingManagerPrivate::QGeoRoutingManagerPrivate() QGeoRoutingManagerPrivate::~QGeoRoutingManagerPrivate() { - if (engine) - delete engine; + delete engine; } #include "moc_qgeoroutingmanager.cpp" |