summaryrefslogtreecommitdiffstats
path: root/src/imports/location/qdeclarativegeomapmouseevent.cpp
diff options
context:
space:
mode:
authorAlex Wilson <alex.wilson@nokia.com>2012-05-14 17:06:02 +1000
committerQt by Nokia <qt-info@nokia.com>2012-05-15 06:02:53 +0200
commit402f904f8c37e0b14ce07d49aaa391ee2d71de64 (patch)
treef50ba2ebfb4d65d1f61c586f30a3bb8317abbb5d /src/imports/location/qdeclarativegeomapmouseevent.cpp
parent08c61718b83f93b2d27871e0e74cce838cc8fbf5 (diff)
Coding style fixes, round #1
In this patch: * Assignment operators that don't check for self-assignment * Using const references where possible in function arguments * Using const refs in the iterator var of a foreach() loop * Add 'explicit' to constructors taking one parameter Change-Id: I640fd85c3312851f0d8c10193333efec41232e05 Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
Diffstat (limited to 'src/imports/location/qdeclarativegeomapmouseevent.cpp')
-rw-r--r--src/imports/location/qdeclarativegeomapmouseevent.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/imports/location/qdeclarativegeomapmouseevent.cpp b/src/imports/location/qdeclarativegeomapmouseevent.cpp
index c97b0b1e..2f39c992 100644
--- a/src/imports/location/qdeclarativegeomapmouseevent.cpp
+++ b/src/imports/location/qdeclarativegeomapmouseevent.cpp
@@ -234,7 +234,7 @@ int QDeclarativeGeoMapMouseEvent::y() const
occurred.
*/
-void QDeclarativeGeoMapMouseEvent::setCoordinate(QGeoCoordinate coordinate)
+void QDeclarativeGeoMapMouseEvent::setCoordinate(const QGeoCoordinate &coordinate)
{
coordinate_.setCoordinate(coordinate);
}