diff options
author | Jesus Fernandez <jesus.fernandez@qt.io> | 2019-01-22 15:45:20 +0100 |
---|---|---|
committer | Jesus Fernandez <Jesus.Fernandez@qt.io> | 2019-01-23 11:53:14 +0000 |
commit | 20a64642c1c4a535b750e8b86435141ca432b050 (patch) | |
tree | 4287c9def6419a5522a69c47e4a5399c8aae8010 /src/location/maps | |
parent | 8fbab5c949bf0fe1ec5e1e452a9c475681d7edc4 (diff) | |
download | qtlocation-20a64642c1c4a535b750e8b86435141ca432b050.tar.gz |
Unify semicolon usage in Q_UNUSED
Change-Id: I36dd6881b6f6f028869d63b6311cba7f52a99cc4
Reviewed-by: Paolo Angelelli <paolo.angelelli@qt.io>
Diffstat (limited to 'src/location/maps')
-rw-r--r-- | src/location/maps/qgeocodingmanagerengine.cpp | 18 | ||||
-rw-r--r-- | src/location/maps/qgeomaneuver.cpp | 18 | ||||
-rw-r--r-- | src/location/maps/qgeomap.cpp | 26 | ||||
-rw-r--r-- | src/location/maps/qgeomappingmanager.cpp | 2 | ||||
-rw-r--r-- | src/location/maps/qgeomappingmanagerengine.cpp | 2 | ||||
-rw-r--r-- | src/location/maps/qgeoprojection.cpp | 8 | ||||
-rw-r--r-- | src/location/maps/qgeoroute.cpp | 16 | ||||
-rw-r--r-- | src/location/maps/qgeoroutesegment.cpp | 12 | ||||
-rw-r--r-- | src/location/maps/qgeoroutingmanagerengine.cpp | 6 | ||||
-rw-r--r-- | src/location/maps/qgeoserviceprovider.cpp | 2 | ||||
-rw-r--r-- | src/location/maps/qgeoserviceproviderfactory.cpp | 32 | ||||
-rw-r--r-- | src/location/maps/qgeotiledmapscene.cpp | 2 | ||||
-rw-r--r-- | src/location/maps/qnavigationmanagerengine.cpp | 2 |
13 files changed, 73 insertions, 73 deletions
diff --git a/src/location/maps/qgeocodingmanagerengine.cpp b/src/location/maps/qgeocodingmanagerengine.cpp index fb7d4e0e..0bb2c24b 100644 --- a/src/location/maps/qgeocodingmanagerengine.cpp +++ b/src/location/maps/qgeocodingmanagerengine.cpp @@ -83,7 +83,7 @@ QGeoCodingManagerEngine::QGeoCodingManagerEngine(const QVariantMap ¶meters, : QObject(parent), d_ptr(new QGeoCodingManagerEnginePrivate()) { - Q_UNUSED(parameters) + Q_UNUSED(parameters); } /*! @@ -174,8 +174,8 @@ int QGeoCodingManagerEngine::managerVersion() const QGeoCodeReply *QGeoCodingManagerEngine::geocode(const QGeoAddress &address, const QGeoShape &bounds) { - Q_UNUSED(address) - Q_UNUSED(bounds) + Q_UNUSED(address); + Q_UNUSED(bounds); return new QGeoCodeReply(QGeoCodeReply::UnsupportedOptionError, QLatin1String("Geocoding is not supported by this service provider."), this); } @@ -219,8 +219,8 @@ QGeoCodeReply *QGeoCodingManagerEngine::geocode(const QGeoAddress &address, QGeoCodeReply *QGeoCodingManagerEngine::reverseGeocode(const QGeoCoordinate &coordinate, const QGeoShape &bounds) { - Q_UNUSED(coordinate) - Q_UNUSED(bounds) + Q_UNUSED(coordinate); + Q_UNUSED(bounds); return new QGeoCodeReply(QGeoCodeReply::UnsupportedOptionError, QLatin1String("Reverse geocoding is not supported by this service provider."), this); } @@ -259,10 +259,10 @@ QGeoCodeReply *QGeoCodingManagerEngine::geocode(const QString &address, int offset, const QGeoShape &bounds) { - Q_UNUSED(address) - Q_UNUSED(limit) - Q_UNUSED(offset) - Q_UNUSED(bounds) + Q_UNUSED(address); + Q_UNUSED(limit); + Q_UNUSED(offset); + Q_UNUSED(bounds); return new QGeoCodeReply(QGeoCodeReply::UnsupportedOptionError, QLatin1String("Searching is not supported by this service provider."), this); diff --git a/src/location/maps/qgeomaneuver.cpp b/src/location/maps/qgeomaneuver.cpp index 22f6f587..1dee942a 100644 --- a/src/location/maps/qgeomaneuver.cpp +++ b/src/location/maps/qgeomaneuver.cpp @@ -356,7 +356,7 @@ bool QGeoManeuverPrivate::valid() const void QGeoManeuverPrivate::setValid(bool valid) { - Q_UNUSED(valid) + Q_UNUSED(valid); } QString QGeoManeuverPrivate::id() const @@ -366,7 +366,7 @@ QString QGeoManeuverPrivate::id() const void QGeoManeuverPrivate::setId(const QString id) { - Q_UNUSED(id) + Q_UNUSED(id); } QGeoCoordinate QGeoManeuverPrivate::position() const @@ -376,7 +376,7 @@ QGeoCoordinate QGeoManeuverPrivate::position() const void QGeoManeuverPrivate::setPosition(const QGeoCoordinate &position) { - Q_UNUSED(position) + Q_UNUSED(position); } QString QGeoManeuverPrivate::text() const @@ -386,7 +386,7 @@ QString QGeoManeuverPrivate::text() const void QGeoManeuverPrivate::setText(const QString &text) { - Q_UNUSED(text) + Q_UNUSED(text); } QGeoManeuver::InstructionDirection QGeoManeuverPrivate::direction() const @@ -396,7 +396,7 @@ QGeoManeuver::InstructionDirection QGeoManeuverPrivate::direction() const void QGeoManeuverPrivate::setDirection(QGeoManeuver::InstructionDirection direction) { - Q_UNUSED(direction) + Q_UNUSED(direction); } int QGeoManeuverPrivate::timeToNextInstruction() const @@ -406,7 +406,7 @@ int QGeoManeuverPrivate::timeToNextInstruction() const void QGeoManeuverPrivate::setTimeToNextInstruction(int timeToNextInstruction) { - Q_UNUSED(timeToNextInstruction) + Q_UNUSED(timeToNextInstruction); } qreal QGeoManeuverPrivate::distanceToNextInstruction() const @@ -416,7 +416,7 @@ qreal QGeoManeuverPrivate::distanceToNextInstruction() const void QGeoManeuverPrivate::setDistanceToNextInstruction(qreal distanceToNextInstruction) { - Q_UNUSED(distanceToNextInstruction) + Q_UNUSED(distanceToNextInstruction); } QGeoCoordinate QGeoManeuverPrivate::waypoint() const @@ -426,7 +426,7 @@ QGeoCoordinate QGeoManeuverPrivate::waypoint() const void QGeoManeuverPrivate::setWaypoint(const QGeoCoordinate &waypoint) { - Q_UNUSED(waypoint) + Q_UNUSED(waypoint); } QVariantMap QGeoManeuverPrivate::extendedAttributes() const @@ -436,7 +436,7 @@ QVariantMap QGeoManeuverPrivate::extendedAttributes() const void QGeoManeuverPrivate::setExtendedAttributes(const QVariantMap &extendedAttributes) { - Q_UNUSED(extendedAttributes) + Q_UNUSED(extendedAttributes); } diff --git a/src/location/maps/qgeomap.cpp b/src/location/maps/qgeomap.cpp index bf5e557d..80edac1a 100644 --- a/src/location/maps/qgeomap.cpp +++ b/src/location/maps/qgeomap.cpp @@ -106,7 +106,7 @@ void QGeoMap::setCameraCapabilities(const QGeoCameraCapabilities &cameraCapabili bool QGeoMap::handleEvent(QEvent *event) { - Q_UNUSED(event) + Q_UNUSED(event); return false; } @@ -137,8 +137,8 @@ bool QGeoMap::anchorCoordinateToPoint(const QGeoCoordinate &coordinate, const QP bool QGeoMap::fitViewportToGeoRectangle(const QGeoRectangle &rectangle, const QMargins &borders) { - Q_UNUSED(rectangle) - Q_UNUSED(borders) + Q_UNUSED(rectangle); + Q_UNUSED(borders); return false; } @@ -333,11 +333,11 @@ QString QGeoMap::copyrightsStyleSheet() const void QGeoMap::setAcceptedGestures(bool pan, bool flick, bool pinch, bool rotate, bool tilt) { - Q_UNUSED(pan) - Q_UNUSED(flick) - Q_UNUSED(pinch) - Q_UNUSED(rotate) - Q_UNUSED(tilt) + Q_UNUSED(pan); + Q_UNUSED(flick); + Q_UNUSED(pinch); + Q_UNUSED(rotate); + Q_UNUSED(tilt); } void QGeoMap::setCopyrightVisible(bool visible) @@ -388,12 +388,12 @@ const QGeoMapPrivate *QGeoMapPrivate::get(const QGeoMap &map) void QGeoMapPrivate::addParameter(QGeoMapParameter *param) { - Q_UNUSED(param) + Q_UNUSED(param); } void QGeoMapPrivate::removeParameter(QGeoMapParameter *param) { - Q_UNUSED(param) + Q_UNUSED(param); } QGeoMap::ItemTypes QGeoMapPrivate::supportedMapItemTypes() const @@ -403,17 +403,17 @@ QGeoMap::ItemTypes QGeoMapPrivate::supportedMapItemTypes() const void QGeoMapPrivate::addMapItem(QDeclarativeGeoMapItemBase *item) { - Q_UNUSED(item) + Q_UNUSED(item); } void QGeoMapPrivate::removeMapItem(QDeclarativeGeoMapItemBase *item) { - Q_UNUSED(item) + Q_UNUSED(item); } QGeoMapObjectPrivate *QGeoMapPrivate::createMapObjectImplementation(QGeoMapObject *obj) { - Q_UNUSED(obj) + Q_UNUSED(obj); return nullptr; } diff --git a/src/location/maps/qgeomappingmanager.cpp b/src/location/maps/qgeomappingmanager.cpp index d73050f7..00982c8a 100644 --- a/src/location/maps/qgeomappingmanager.cpp +++ b/src/location/maps/qgeomappingmanager.cpp @@ -133,7 +133,7 @@ int QGeoMappingManager::managerVersion() const */ QGeoMap *QGeoMappingManager::createMap(QObject *parent) { - Q_UNUSED(parent) + Q_UNUSED(parent); return d_ptr->engine->createMap(); } diff --git a/src/location/maps/qgeomappingmanagerengine.cpp b/src/location/maps/qgeomappingmanagerengine.cpp index 187b30eb..663e9917 100644 --- a/src/location/maps/qgeomappingmanagerengine.cpp +++ b/src/location/maps/qgeomappingmanagerengine.cpp @@ -152,7 +152,7 @@ void QGeoMappingManagerEngine::setSupportedMapTypes(const QList<QGeoMapType> &su QGeoCameraCapabilities QGeoMappingManagerEngine::cameraCapabilities(int mapId) const { - Q_UNUSED(mapId) + Q_UNUSED(mapId); Q_D(const QGeoMappingManagerEngine); if (mapId == 0) diff --git a/src/location/maps/qgeoprojection.cpp b/src/location/maps/qgeoprojection.cpp index 0fdb5f0b..f64060e2 100644 --- a/src/location/maps/qgeoprojection.cpp +++ b/src/location/maps/qgeoprojection.cpp @@ -101,8 +101,8 @@ QGeoProjection::~QGeoProjection() QGeoCoordinate QGeoProjection::anchorCoordinateToPoint(const QGeoCoordinate &coordinate, const QPointF &anchorPoint) const { - Q_UNUSED(coordinate) - Q_UNUSED(anchorPoint) + Q_UNUSED(coordinate); + Q_UNUSED(anchorPoint); return QGeoCoordinate(); } @@ -113,8 +113,8 @@ QGeoShape QGeoProjection::visibleRegion() const bool QGeoProjection::setBearing(qreal bearing, const QGeoCoordinate &coordinate) { - Q_UNUSED(bearing) - Q_UNUSED(coordinate) + Q_UNUSED(bearing); + Q_UNUSED(coordinate); return false; } diff --git a/src/location/maps/qgeoroute.cpp b/src/location/maps/qgeoroute.cpp index ef54e4aa..ffa9a496 100644 --- a/src/location/maps/qgeoroute.cpp +++ b/src/location/maps/qgeoroute.cpp @@ -395,7 +395,7 @@ bool QGeoRoutePrivate::equals(const QGeoRoutePrivate &other) const void QGeoRoutePrivate::setId(const QString &id) { - Q_UNUSED(id) + Q_UNUSED(id); } QString QGeoRoutePrivate::id() const @@ -405,7 +405,7 @@ QString QGeoRoutePrivate::id() const void QGeoRoutePrivate::setRequest(const QGeoRouteRequest &request) { - Q_UNUSED(request) + Q_UNUSED(request); } QGeoRouteRequest QGeoRoutePrivate::request() const @@ -415,7 +415,7 @@ QGeoRouteRequest QGeoRoutePrivate::request() const void QGeoRoutePrivate::setBounds(const QGeoRectangle &bounds) { - Q_UNUSED(bounds) + Q_UNUSED(bounds); } QGeoRectangle QGeoRoutePrivate::bounds() const @@ -425,7 +425,7 @@ QGeoRectangle QGeoRoutePrivate::bounds() const void QGeoRoutePrivate::setTravelTime(int travelTime) { - Q_UNUSED(travelTime) + Q_UNUSED(travelTime); } int QGeoRoutePrivate::travelTime() const @@ -435,7 +435,7 @@ int QGeoRoutePrivate::travelTime() const void QGeoRoutePrivate::setDistance(qreal distance) { - Q_UNUSED(distance) + Q_UNUSED(distance); } qreal QGeoRoutePrivate::distance() const @@ -445,7 +445,7 @@ qreal QGeoRoutePrivate::distance() const void QGeoRoutePrivate::setTravelMode(QGeoRouteRequest::TravelMode mode) { - Q_UNUSED(mode) + Q_UNUSED(mode); } QGeoRouteRequest::TravelMode QGeoRoutePrivate::travelMode() const @@ -455,7 +455,7 @@ QGeoRouteRequest::TravelMode QGeoRoutePrivate::travelMode() const void QGeoRoutePrivate::setPath(const QList<QGeoCoordinate> &path) { - Q_UNUSED(path) + Q_UNUSED(path); } QList<QGeoCoordinate> QGeoRoutePrivate::path() const @@ -465,7 +465,7 @@ QList<QGeoCoordinate> QGeoRoutePrivate::path() const void QGeoRoutePrivate::setFirstSegment(const QGeoRouteSegment &firstSegment) { - Q_UNUSED(firstSegment) + Q_UNUSED(firstSegment); } QGeoRouteSegment QGeoRoutePrivate::firstSegment() const diff --git a/src/location/maps/qgeoroutesegment.cpp b/src/location/maps/qgeoroutesegment.cpp index aff54fc7..0e350d0a 100644 --- a/src/location/maps/qgeoroutesegment.cpp +++ b/src/location/maps/qgeoroutesegment.cpp @@ -298,7 +298,7 @@ bool QGeoRouteSegmentPrivate::valid() const void QGeoRouteSegmentPrivate::setValid(bool valid) { - Q_UNUSED(valid) + Q_UNUSED(valid); } bool QGeoRouteSegmentPrivate::isLegLastSegment() const @@ -308,7 +308,7 @@ bool QGeoRouteSegmentPrivate::isLegLastSegment() const void QGeoRouteSegmentPrivate::setLegLastSegment(bool lastSegment) { - Q_UNUSED(lastSegment) + Q_UNUSED(lastSegment); } int QGeoRouteSegmentPrivate::travelTime() const @@ -318,7 +318,7 @@ int QGeoRouteSegmentPrivate::travelTime() const void QGeoRouteSegmentPrivate::setTravelTime(int travelTime) { - Q_UNUSED(travelTime) + Q_UNUSED(travelTime); } qreal QGeoRouteSegmentPrivate::distance() const @@ -328,7 +328,7 @@ qreal QGeoRouteSegmentPrivate::distance() const void QGeoRouteSegmentPrivate::setDistance(qreal distance) { - Q_UNUSED(distance) + Q_UNUSED(distance); } QList<QGeoCoordinate> QGeoRouteSegmentPrivate::path() const @@ -338,7 +338,7 @@ QList<QGeoCoordinate> QGeoRouteSegmentPrivate::path() const void QGeoRouteSegmentPrivate::setPath(const QList<QGeoCoordinate> &path) { - Q_UNUSED(path) + Q_UNUSED(path); } QGeoManeuver QGeoRouteSegmentPrivate::maneuver() const @@ -348,7 +348,7 @@ QGeoManeuver QGeoRouteSegmentPrivate::maneuver() const void QGeoRouteSegmentPrivate::setManeuver(const QGeoManeuver &maneuver) { - Q_UNUSED(maneuver) + Q_UNUSED(maneuver); } QExplicitlySharedDataPointer<QGeoRouteSegmentPrivate> QGeoRouteSegmentPrivate::nextRouteSegment() const diff --git a/src/location/maps/qgeoroutingmanagerengine.cpp b/src/location/maps/qgeoroutingmanagerengine.cpp index aa307057..df6d762d 100644 --- a/src/location/maps/qgeoroutingmanagerengine.cpp +++ b/src/location/maps/qgeoroutingmanagerengine.cpp @@ -86,7 +86,7 @@ QGeoRoutingManagerEngine::QGeoRoutingManagerEngine(const QVariantMap ¶meters : QObject(parent), d_ptr(new QGeoRoutingManagerEnginePrivate()) { - Q_UNUSED(parameters) + Q_UNUSED(parameters); } /*! @@ -196,8 +196,8 @@ int QGeoRoutingManagerEngine::managerVersion() const */ QGeoRouteReply *QGeoRoutingManagerEngine::updateRoute(const QGeoRoute &route, const QGeoCoordinate &position) { - Q_UNUSED(route) - Q_UNUSED(position) + Q_UNUSED(route); + Q_UNUSED(position); return new QGeoRouteReply(QGeoRouteReply::UnsupportedOptionError, QLatin1String("The updating of routes is not supported by this service provider."), this); } diff --git a/src/location/maps/qgeoserviceprovider.cpp b/src/location/maps/qgeoserviceprovider.cpp index d2f98b4d..1792b7c5 100644 --- a/src/location/maps/qgeoserviceprovider.cpp +++ b/src/location/maps/qgeoserviceprovider.cpp @@ -860,7 +860,7 @@ void QGeoServiceProviderPrivate::loadMeta() void QGeoServiceProviderPrivate::loadPlugin(const QVariantMap ¶meters) { - Q_UNUSED(parameters) + Q_UNUSED(parameters); if (int(metaData.value(QStringLiteral("index")).toDouble()) < 0) { error = QGeoServiceProvider::NotSupportedError; diff --git a/src/location/maps/qgeoserviceproviderfactory.cpp b/src/location/maps/qgeoserviceproviderfactory.cpp index 65a88710..d9438d74 100644 --- a/src/location/maps/qgeoserviceproviderfactory.cpp +++ b/src/location/maps/qgeoserviceproviderfactory.cpp @@ -80,9 +80,9 @@ QGeoCodingManagerEngine *QGeoServiceProviderFactory::createGeocodingManagerEngin QGeoServiceProvider::Error *error, QString *errorString) const { - Q_UNUSED(parameters) - Q_UNUSED(error) - Q_UNUSED(errorString) + Q_UNUSED(parameters); + Q_UNUSED(error); + Q_UNUSED(errorString); return 0; } @@ -106,9 +106,9 @@ QGeoMappingManagerEngine *QGeoServiceProviderFactory::createMappingManagerEngine QGeoServiceProvider::Error *error, QString *errorString) const { - Q_UNUSED(parameters) - Q_UNUSED(error) - Q_UNUSED(errorString) + Q_UNUSED(parameters); + Q_UNUSED(error); + Q_UNUSED(errorString); return 0; } @@ -131,9 +131,9 @@ QGeoRoutingManagerEngine *QGeoServiceProviderFactory::createRoutingManagerEngine QString *errorString) const { - Q_UNUSED(parameters) - Q_UNUSED(error) - Q_UNUSED(errorString) + Q_UNUSED(parameters); + Q_UNUSED(error); + Q_UNUSED(errorString); return 0; } @@ -156,9 +156,9 @@ QPlaceManagerEngine *QGeoServiceProviderFactory::createPlaceManagerEngine(const QString *errorString) const { - Q_UNUSED(parameters) - Q_UNUSED(error) - Q_UNUSED(errorString) + Q_UNUSED(parameters); + Q_UNUSED(error); + Q_UNUSED(errorString); return 0; } @@ -200,9 +200,9 @@ Destroys this QGeoServiceProviderFactoryV2 instance. */ QNavigationManagerEngine *QGeoServiceProviderFactoryV2::createNavigationManagerEngine(const QVariantMap ¶meters, QGeoServiceProvider::Error *error, QString *errorString) const { - Q_UNUSED(parameters) - Q_UNUSED(error) - Q_UNUSED(errorString) + Q_UNUSED(parameters); + Q_UNUSED(error); + Q_UNUSED(errorString); return 0; } @@ -216,7 +216,7 @@ QNavigationManagerEngine *QGeoServiceProviderFactoryV2::createNavigationManagerE */ void QGeoServiceProviderFactoryV3::setQmlEngine(QQmlEngine *engine) { - Q_UNUSED(engine) + Q_UNUSED(engine); } QT_END_NAMESPACE diff --git a/src/location/maps/qgeotiledmapscene.cpp b/src/location/maps/qgeotiledmapscene.cpp index 074b67c6..a5f94c8d 100644 --- a/src/location/maps/qgeotiledmapscene.cpp +++ b/src/location/maps/qgeotiledmapscene.cpp @@ -533,7 +533,7 @@ void QGeoTiledMapRootNode::updateTiles(QGeoTiledMapTileContainerNode *root, if (ogl) static_cast<QSGDefaultImageNode *>(node)->setAnisotropyLevel(QSGTexture::Anisotropy16x); #else - Q_UNUSED(ogl) + Q_UNUSED(ogl); #endif dirtyBits |= QSGNode::DirtyMaterial; } diff --git a/src/location/maps/qnavigationmanagerengine.cpp b/src/location/maps/qnavigationmanagerengine.cpp index 770e30a6..d0f8418e 100644 --- a/src/location/maps/qnavigationmanagerengine.cpp +++ b/src/location/maps/qnavigationmanagerengine.cpp @@ -90,7 +90,7 @@ QNavigationManagerEngine::QNavigationManagerEngine(const QVariantMap ¶meters : QObject(parent) , d(new QNavigationManagerEnginePrivate) { - Q_UNUSED(parameters) + Q_UNUSED(parameters); } QNavigationManagerEngine::~QNavigationManagerEngine() |