Remove unrequired ;

and make clang-tidy a bit more smiley
This commit is contained in:
Matthias Kuhn 2019-05-15 09:16:27 +02:00
parent 5844a0fc90
commit 4d6fbd3f18
528 changed files with 1440 additions and 1440 deletions

View File

@ -62,7 +62,7 @@ bool QgsChunkNode::allChildChunksResident( QTime currentTime ) const
return false; // not even a skeleton
if ( mChildren[i]->mHasData && !mChildren[i]->mEntity )
return false; // no there yet
Q_UNUSED( currentTime ); // seems we do not need this extra time (it just brings extra problems)
Q_UNUSED( currentTime ) // seems we do not need this extra time (it just brings extra problems)
//if (children[i]->entityCreatedTime.msecsTo(currentTime) < 100)
// return false; // allow some time for upload of stuff within Qt3D (TODO: better way to check it is ready?)
}

View File

@ -58,7 +58,7 @@ QgsProcessing::SourceType QgsTessellateAlgorithm::outputLayerType() const
QgsWkbTypes::Type QgsTessellateAlgorithm::outputWkbType( QgsWkbTypes::Type inputWkbType ) const
{
Q_UNUSED( inputWkbType );
Q_UNUSED( inputWkbType )
return QgsWkbTypes::MultiPolygonZ;
}

View File

@ -170,7 +170,7 @@ void QgsCameraController::rotateCamera( float diffPitch, float diffYaw )
void QgsCameraController::frameTriggered( float dt )
{
Q_UNUSED( dt );
Q_UNUSED( dt )
}
void QgsCameraController::resetView( float distance )
@ -348,13 +348,13 @@ void QgsCameraController::onWheel( Qt3DInput::QWheelEvent *wheel )
void QgsCameraController::onMousePressed( Qt3DInput::QMouseEvent *mouse )
{
Q_UNUSED( mouse );
Q_UNUSED( mouse )
mKeyboardHandler->setFocus( true );
}
void QgsCameraController::onMouseReleased( Qt3DInput::QMouseEvent *mouse )
{
Q_UNUSED( mouse );
Q_UNUSED( mouse )
}
void QgsCameraController::onKeyPressed( Qt3DInput::QKeyEvent *event )
@ -439,7 +439,7 @@ void QgsCameraController::onKeyPressed( Qt3DInput::QKeyEvent *event )
void QgsCameraController::onKeyReleased( Qt3DInput::QKeyEvent *event )
{
Q_UNUSED( event );
Q_UNUSED( event )
}
void QgsCameraController::onPickerMousePressed( Qt3DRender::QPickEvent *pick )

View File

@ -209,7 +209,7 @@ bool QgsLayoutItem3DMap::writePropertiesToElement( QDomElement &element, QDomDoc
bool QgsLayoutItem3DMap::readPropertiesFromElement( const QDomElement &element, const QDomDocument &document, const QgsReadWriteContext &context )
{
Q_UNUSED( document );
Q_UNUSED( document )
QDomElement elemSettings = element.firstChildElement( QStringLiteral( "qgis3d" ) );
if ( !elemSettings.isNull() )
{

View File

@ -122,7 +122,7 @@ void QgsOffscreen3DEngine::setClearColor( const QColor &color )
void QgsOffscreen3DEngine::setFrustumCullingEnabled( bool enabled )
{
// TODO
Q_UNUSED( enabled );
Q_UNUSED( enabled )
}
void QgsOffscreen3DEngine::createRenderTarget()

View File

@ -461,7 +461,7 @@ void QgsRuleBased3DRenderer::writeXml( QDomElement &elem, const QgsReadWriteCont
void QgsRuleBased3DRenderer::readXml( const QDomElement &elem, const QgsReadWriteContext &context )
{
Q_UNUSED( context );
Q_UNUSED( context )
mLayerRef = QgsMapLayerRef( elem.attribute( QStringLiteral( "layer" ) ) );
// root rule is read before class constructed

View File

@ -24,7 +24,7 @@ QgsAbstract3DSymbol *QgsLine3DSymbol::clone() const
void QgsLine3DSymbol::writeXml( QDomElement &elem, const QgsReadWriteContext &context ) const
{
Q_UNUSED( context );
Q_UNUSED( context )
QDomDocument doc = elem.ownerDocument();
@ -44,7 +44,7 @@ void QgsLine3DSymbol::writeXml( QDomElement &elem, const QgsReadWriteContext &co
void QgsLine3DSymbol::readXml( const QDomElement &elem, const QgsReadWriteContext &context )
{
Q_UNUSED( context );
Q_UNUSED( context )
QDomElement elemDataProperties = elem.firstChildElement( QStringLiteral( "data" ) );
mAltClamping = Qgs3DUtils::altClampingFromString( elemDataProperties.attribute( QStringLiteral( "alt-clamping" ) ) );

View File

@ -87,8 +87,8 @@ class QgsBufferedLine3DSymbolHandler : public QgsFeature3DHandler
bool QgsBufferedLine3DSymbolHandler::prepare( const Qgs3DRenderContext &context, QSet<QString> &attributeNames )
{
Q_UNUSED( context );
Q_UNUSED( attributeNames );
Q_UNUSED( context )
Q_UNUSED( attributeNames )
return true;
}
@ -213,7 +213,7 @@ class QgsSimpleLine3DSymbolHandler : public QgsFeature3DHandler
bool QgsSimpleLine3DSymbolHandler::prepare( const Qgs3DRenderContext &context, QSet<QString> &attributeNames )
{
Q_UNUSED( attributeNames );
Q_UNUSED( attributeNames )
outNormal.init( mSymbol.altitudeClamping(), mSymbol.altitudeBinding(), mSymbol.height(), &context.map() );
outSelected.init( mSymbol.altitudeClamping(), mSymbol.altitudeBinding(), mSymbol.height(), &context.map() );
@ -223,7 +223,7 @@ bool QgsSimpleLine3DSymbolHandler::prepare( const Qgs3DRenderContext &context, Q
void QgsSimpleLine3DSymbolHandler::processFeature( QgsFeature &f, const Qgs3DRenderContext &context )
{
Q_UNUSED( context );
Q_UNUSED( context )
if ( f.geometry().isNull() )
return;
@ -323,7 +323,7 @@ class QgsThickLine3DSymbolHandler : public QgsFeature3DHandler
bool QgsThickLine3DSymbolHandler::prepare( const Qgs3DRenderContext &context, QSet<QString> &attributeNames )
{
Q_UNUSED( attributeNames );
Q_UNUSED( attributeNames )
outNormal.withAdjacency = true;
outSelected.withAdjacency = true;
@ -335,7 +335,7 @@ bool QgsThickLine3DSymbolHandler::prepare( const Qgs3DRenderContext &context, QS
void QgsThickLine3DSymbolHandler::processFeature( QgsFeature &f, const Qgs3DRenderContext &context )
{
Q_UNUSED( context );
Q_UNUSED( context )
if ( f.geometry().isNull() )
return;

View File

@ -24,7 +24,7 @@ QgsAbstract3DSymbol *QgsMesh3DSymbol::clone() const
void QgsMesh3DSymbol::writeXml( QDomElement &elem, const QgsReadWriteContext &context ) const
{
Q_UNUSED( context );
Q_UNUSED( context )
QDomDocument doc = elem.ownerDocument();
@ -45,7 +45,7 @@ void QgsMesh3DSymbol::writeXml( QDomElement &elem, const QgsReadWriteContext &co
void QgsMesh3DSymbol::readXml( const QDomElement &elem, const QgsReadWriteContext &context )
{
Q_UNUSED( context );
Q_UNUSED( context )
QDomElement elemDataProperties = elem.firstChildElement( QStringLiteral( "data" ) );
mAltClamping = Qgs3DUtils::altClampingFromString( elemDataProperties.attribute( QStringLiteral( "alt-clamping" ) ) );

View File

@ -90,8 +90,8 @@ class QgsInstancedPoint3DSymbolHandler : public QgsFeature3DHandler
bool QgsInstancedPoint3DSymbolHandler::prepare( const Qgs3DRenderContext &context, QSet<QString> &attributeNames )
{
Q_UNUSED( context );
Q_UNUSED( attributeNames );
Q_UNUSED( context )
Q_UNUSED( attributeNames )
return true;
}
@ -362,8 +362,8 @@ class QgsModelPoint3DSymbolHandler : public QgsFeature3DHandler
bool QgsModelPoint3DSymbolHandler::prepare( const Qgs3DRenderContext &context, QSet<QString> &attributeNames )
{
Q_UNUSED( context );
Q_UNUSED( attributeNames );
Q_UNUSED( context )
Q_UNUSED( attributeNames )
return true;
}
@ -406,7 +406,7 @@ void QgsModelPoint3DSymbolHandler::makeEntity( Qt3DCore::QEntity *parent, const
void QgsModelPoint3DSymbolHandler::addSceneEntities( const Qgs3DMapSettings &map, const QVector<QVector3D> &positions, const QgsPoint3DSymbol &symbol, Qt3DCore::QEntity *parent )
{
Q_UNUSED( map );
Q_UNUSED( map )
for ( const QVector3D &position : positions )
{
// build the entity

View File

@ -25,7 +25,7 @@ QgsAbstract3DSymbol *QgsPolygon3DSymbol::clone() const
void QgsPolygon3DSymbol::writeXml( QDomElement &elem, const QgsReadWriteContext &context ) const
{
Q_UNUSED( context );
Q_UNUSED( context )
QDomDocument doc = elem.ownerDocument();
@ -56,7 +56,7 @@ void QgsPolygon3DSymbol::writeXml( QDomElement &elem, const QgsReadWriteContext
void QgsPolygon3DSymbol::readXml( const QDomElement &elem, const QgsReadWriteContext &context )
{
Q_UNUSED( context );
Q_UNUSED( context )
QDomElement elemDataProperties = elem.firstChildElement( QStringLiteral( "data" ) );
mAltClamping = Qgs3DUtils::altClampingFromString( elemDataProperties.attribute( QStringLiteral( "alt-clamping" ) ) );

View File

@ -65,7 +65,7 @@ QgsRectangle QgsDemTerrainGenerator::extent() const
float QgsDemTerrainGenerator::heightAt( double x, double y, const Qgs3DMapSettings &map ) const
{
Q_UNUSED( map );
Q_UNUSED( map )
if ( mHeightMapGenerator )
return mHeightMapGenerator->heightAt( x, y );
else

View File

@ -50,7 +50,7 @@ QgsRectangle QgsOnlineTerrainGenerator::extent() const
float QgsOnlineTerrainGenerator::heightAt( double x, double y, const Qgs3DMapSettings &map ) const
{
Q_UNUSED( map );
Q_UNUSED( map )
if ( mHeightMapGenerator )
return mHeightMapGenerator->heightAt( x, y );
else

View File

@ -50,9 +50,9 @@ void QgsTerrainGenerator::rootChunkHeightRange( float &hMin, float &hMax ) const
float QgsTerrainGenerator::heightAt( double x, double y, const Qgs3DMapSettings &map ) const
{
Q_UNUSED( x );
Q_UNUSED( y );
Q_UNUSED( map );
Q_UNUSED( x )
Q_UNUSED( y )
Q_UNUSED( map )
return 0.f;
}

View File

@ -82,7 +82,7 @@ class _3D_EXPORT QgsTerrainGenerator : public QgsChunkLoaderFactory
virtual void readXml( const QDomElement &elem ) = 0;
//! After read of XML, resolve references to any layers that have been read as layer IDs
virtual void resolveReferences( const QgsProject &project ) { Q_UNUSED( project ); }
virtual void resolveReferences( const QgsProject &project ) { Q_UNUSED( project ) }
//! Converts terrain generator type enumeration into a string
static QString typeToString( Type type );

View File

@ -81,13 +81,13 @@ inline Bezier3D::Bezier3D( ParametricLine *parent, QVector<QgsPoint *> *controlp
inline void Bezier3D::add( ParametricLine *pl )
{
Q_UNUSED( pl );
Q_UNUSED( pl )
QgsDebugMsg( QStringLiteral( "Error!!!!! A Bezier-curve can not be parent of a ParametricLine." ) );
}
inline void Bezier3D::remove( int i )
{
Q_UNUSED( i );
Q_UNUSED( i )
QgsDebugMsg( QStringLiteral( "Error!!!!! A Bezier-curve has no children to remove." ) );
}

View File

@ -1654,7 +1654,7 @@ void DualEdgeTriangulation::ruppertRefinement()
{
//split segment
int pointno = splitHalfEdge( i, 0.5 );
Q_UNUSED( pointno );
Q_UNUSED( pointno )
stop = false;
}
}

View File

@ -49,7 +49,7 @@ bool MathUtils::calcBarycentricCoordinates( double x, double y, QgsPoint *p1, Qg
bool MathUtils::BarycentricToXY( double u, double v, double w, QgsPoint *p1, QgsPoint *p2, QgsPoint *p3, QgsPoint *result )//this is wrong at the moment. Furthermore, the case, where the denominators are 0 have to be treated (two ways of calculating px and py)
{
Q_UNUSED( w );
Q_UNUSED( w )
double px, py;
if ( p1 && p2 && p3 && result )

View File

@ -19,28 +19,28 @@
void ParametricLine::add( ParametricLine *pl )
{
Q_UNUSED( pl );
Q_UNUSED( pl )
QgsDebugMsg( QStringLiteral( "warning, derive a class from ParametricLine" ) );
}
void ParametricLine::calcFirstDer( float t, Vector3D *v )
{
Q_UNUSED( t );
Q_UNUSED( v );
Q_UNUSED( t )
Q_UNUSED( v )
QgsDebugMsg( QStringLiteral( "warning, derive a class from ParametricLine" ) );
}
void ParametricLine::calcSecDer( float t, Vector3D *v )
{
Q_UNUSED( t );
Q_UNUSED( v );
Q_UNUSED( t )
Q_UNUSED( v )
QgsDebugMsg( QStringLiteral( "warning, derive a class from ParametricLine" ) );
}
void ParametricLine::calcPoint( float t, QgsPoint *p )
{
Q_UNUSED( t );
Q_UNUSED( p );
Q_UNUSED( t )
Q_UNUSED( p )
QgsDebugMsg( QStringLiteral( "warning, derive a class from ParametricLine" ) );
}
@ -52,19 +52,19 @@ ParametricLine *ParametricLine::getParent() const
void ParametricLine::remove( int i )
{
Q_UNUSED( i );
Q_UNUSED( i )
QgsDebugMsg( QStringLiteral( "warning, derive a class from ParametricLine" ) );
}
void ParametricLine::setControlPoly( QVector<QgsPoint *> *cp )
{
Q_UNUSED( cp );
Q_UNUSED( cp )
QgsDebugMsg( QStringLiteral( "warning, derive a class from ParametricLine" ) );
}
void ParametricLine::setParent( ParametricLine *paral )
{
Q_UNUSED( paral );
Q_UNUSED( paral )
QgsDebugMsg( QStringLiteral( "warning, derive a class from ParametricLine" ) );
}
@ -76,7 +76,7 @@ int ParametricLine::getDegree() const
const QgsPoint *ParametricLine::getControlPoint( int number ) const
{
Q_UNUSED( number );
Q_UNUSED( number )
QgsDebugMsg( QStringLiteral( "warning, derive a class from ParametricLine" ) );
return nullptr;
}

View File

@ -117,7 +117,7 @@ void addToTmpNodes(QgsMeshCalcNode* node)
void removeTmpNode(QgsMeshCalcNode* node)
{
bool res;
Q_UNUSED(res);
Q_UNUSED(res)
if (node)
{

View File

@ -77,7 +77,7 @@ QgsMeshCalculator::Result QgsMeshCalculator::expression_valid( const QString &fo
QgsMeshCalculator::Result QgsMeshCalculator::processCalculation( QgsFeedback *feedback )
{
Q_UNUSED( feedback );
Q_UNUSED( feedback )
// check input
if ( mOutputFile.isEmpty() )

View File

@ -29,17 +29,17 @@ QgsGraphBuilderInterface::QgsGraphBuilderInterface( const QgsCoordinateReference
void QgsGraphBuilderInterface::addVertex( int id, const QgsPointXY &pt )
{
Q_UNUSED( id );
Q_UNUSED( pt );
Q_UNUSED( id )
Q_UNUSED( pt )
}
void QgsGraphBuilderInterface::addEdge( int pt1id, const QgsPointXY &pt1,
int pt2id, const QgsPointXY &pt2,
const QVector<QVariant> &strategies )
{
Q_UNUSED( pt1id );
Q_UNUSED( pt1 );
Q_UNUSED( pt2id );
Q_UNUSED( pt2 );
Q_UNUSED( strategies );
Q_UNUSED( pt1id )
Q_UNUSED( pt1 )
Q_UNUSED( pt2id )
Q_UNUSED( pt2 )
Q_UNUSED( strategies )
}

View File

@ -75,10 +75,10 @@ class ANALYSIS_EXPORT QgsGraphDirector : public QObject
QVector< QgsPointXY > &snappedPoints SIP_OUT,
QgsFeedback *feedback = nullptr ) const
{
Q_UNUSED( builder );
Q_UNUSED( additionalPoints );
Q_UNUSED( snappedPoints );
Q_UNUSED( feedback );
Q_UNUSED( builder )
Q_UNUSED( additionalPoints )
Q_UNUSED( snappedPoints )
Q_UNUSED( feedback )
}
//! Add optimization strategy

View File

@ -17,6 +17,6 @@
QVariant QgsNetworkDistanceStrategy::cost( double distance, const QgsFeature &f ) const
{
Q_UNUSED( f );
Q_UNUSED( f )
return QVariant( distance );
}

View File

@ -120,7 +120,7 @@ class QgsNetworkVisitor : public SpatialIndex::IVisitor
: mPoints( pointIndexes ) {}
void visitNode( const INode &n ) override
{ Q_UNUSED( n ); }
{ Q_UNUSED( n ) }
void visitData( const IData &d ) override
{
@ -128,7 +128,7 @@ class QgsNetworkVisitor : public SpatialIndex::IVisitor
}
void visitData( std::vector<const IData *> &v ) override
{ Q_UNUSED( v ); }
{ Q_UNUSED( v ) }
private:
QVector< int > &mPoints;

View File

@ -165,7 +165,7 @@ QgsFeatureList QgsAddIncrementalFieldAlgorithm::processFeature( const QgsFeature
bool QgsAddIncrementalFieldAlgorithm::supportInPlaceEdit( const QgsMapLayer *layer ) const
{
Q_UNUSED( layer );
Q_UNUSED( layer )
return false;
}

View File

@ -141,7 +141,7 @@ QgsFeatureList QgsAddXYFieldsAlgorithm::processFeature( const QgsFeature &featur
bool QgsAddXYFieldsAlgorithm::supportInPlaceEdit( const QgsMapLayer *layer ) const
{
Q_UNUSED( layer );
Q_UNUSED( layer )
return false;
}

View File

@ -64,7 +64,7 @@ QgsAssignProjectionAlgorithm *QgsAssignProjectionAlgorithm::createInstance() con
bool QgsAssignProjectionAlgorithm::supportInPlaceEdit( const QgsMapLayer *layer ) const
{
Q_UNUSED( layer );
Q_UNUSED( layer )
return false;
}

View File

@ -50,7 +50,7 @@ class QgsCentroidAlgorithm : public QgsProcessingFeatureBasedAlgorithm
QString outputName() const override;
QgsProcessing::SourceType outputLayerType() const override { return QgsProcessing::TypeVectorPoint; }
QgsWkbTypes::Type outputWkbType( QgsWkbTypes::Type inputWkbType ) const override { Q_UNUSED( inputWkbType ); return QgsWkbTypes::Point; }
QgsWkbTypes::Type outputWkbType( QgsWkbTypes::Type inputWkbType ) const override { Q_UNUSED( inputWkbType ) return QgsWkbTypes::Point; }
bool prepareAlgorithm( const QVariantMap &parameters, QgsProcessingContext &context, QgsProcessingFeedback *feedback ) override;
QgsFeatureList processFeature( const QgsFeature &feature, QgsProcessingContext &context, QgsProcessingFeedback *feedback ) override;

View File

@ -87,8 +87,8 @@ QString QgsDensifyGeometriesByIntervalAlgorithm::outputName() const
QgsFeatureList QgsDensifyGeometriesByIntervalAlgorithm::processFeature( const QgsFeature &feature, QgsProcessingContext &context, QgsProcessingFeedback *feedback )
{
Q_UNUSED( context );
Q_UNUSED( feedback );
Q_UNUSED( context )
Q_UNUSED( feedback )
QgsFeature modifiedFeature = feature;
double interval = mInterval;
@ -103,7 +103,7 @@ QgsFeatureList QgsDensifyGeometriesByIntervalAlgorithm::processFeature( const Qg
bool QgsDensifyGeometriesByIntervalAlgorithm::prepareAlgorithm( const QVariantMap &parameters, QgsProcessingContext &context, QgsProcessingFeedback *feedback )
{
Q_UNUSED( feedback );
Q_UNUSED( feedback )
mInterval = parameterAsDouble( parameters, QStringLiteral( "INTERVAL" ), context );
mDynamicInterval = QgsProcessingParameters::isDynamic( parameters, QStringLiteral( "INTERVAL" ) );

View File

@ -61,7 +61,7 @@ QgsDropMZValuesAlgorithm *QgsDropMZValuesAlgorithm::createInstance() const
bool QgsDropMZValuesAlgorithm::supportInPlaceEdit( const QgsMapLayer *layer ) const
{
Q_UNUSED( layer );
Q_UNUSED( layer )
return false;
}

View File

@ -137,7 +137,7 @@ QgsFeatureList QgsExtractZMValuesAlgorithmBase::processFeature( const QgsFeature
bool QgsExtractZMValuesAlgorithmBase::supportInPlaceEdit( const QgsMapLayer *layer ) const
{
Q_UNUSED( layer );
Q_UNUSED( layer )
return false;
}

View File

@ -51,7 +51,7 @@ class QgsMultiRingConstantBufferAlgorithm : public QgsProcessingFeatureBasedAlgo
QgsProcessing::SourceType outputLayerType() const override { return QgsProcessing::TypeVectorPolygon; }
QgsProcessingFeatureSource::Flag sourceFlags() const override;
QgsFeatureSink::SinkFlags sinkFlags() const override;
QgsWkbTypes::Type outputWkbType( QgsWkbTypes::Type inputWkbType ) const override { Q_UNUSED( inputWkbType ); return QgsWkbTypes::MultiPolygon; }
QgsWkbTypes::Type outputWkbType( QgsWkbTypes::Type inputWkbType ) const override { Q_UNUSED( inputWkbType ) return QgsWkbTypes::MultiPolygon; }
bool prepareAlgorithm( const QVariantMap &parameters, QgsProcessingContext &context, QgsProcessingFeedback *feedback ) override;
QgsFeatureList processFeature( const QgsFeature &feature, QgsProcessingContext &context, QgsProcessingFeedback *feedback ) override;

View File

@ -83,7 +83,7 @@ void QgsNetworkAnalysisAlgorithmBase::addCommonParams()
void QgsNetworkAnalysisAlgorithmBase::loadCommonParams( const QVariantMap &parameters, QgsProcessingContext &context, QgsProcessingFeedback *feedback )
{
Q_UNUSED( feedback );
Q_UNUSED( feedback )
mNetwork.reset( parameterAsSource( parameters, QStringLiteral( "INPUT" ), context ) );
if ( !mNetwork )

View File

@ -50,7 +50,7 @@ class QgsPointOnSurfaceAlgorithm : public QgsProcessingFeatureBasedAlgorithm
QString outputName() const override;
QgsProcessing::SourceType outputLayerType() const override { return QgsProcessing::TypeVectorPoint; }
QgsWkbTypes::Type outputWkbType( QgsWkbTypes::Type inputWkbType ) const override { Q_UNUSED( inputWkbType ); return QgsWkbTypes::Point; }
QgsWkbTypes::Type outputWkbType( QgsWkbTypes::Type inputWkbType ) const override { Q_UNUSED( inputWkbType ) return QgsWkbTypes::Point; }
bool prepareAlgorithm( const QVariantMap &parameters, QgsProcessingContext &context, QgsProcessingFeedback *feedback ) override;
QgsFeatureList processFeature( const QgsFeature &feature, QgsProcessingContext &context, QgsProcessingFeedback *feedback ) override;

View File

@ -80,7 +80,7 @@ void QgsSegmentizeByMaximumDistanceAlgorithm::initParameters( const QVariantMap
bool QgsSegmentizeByMaximumDistanceAlgorithm::supportInPlaceEdit( const QgsMapLayer *layer ) const
{
Q_UNUSED( layer );
Q_UNUSED( layer )
return false;
}
@ -175,7 +175,7 @@ void QgsSegmentizeByMaximumAngleAlgorithm::initParameters( const QVariantMap & )
bool QgsSegmentizeByMaximumAngleAlgorithm::supportInPlaceEdit( const QgsMapLayer *layer ) const
{
Q_UNUSED( layer );
Q_UNUSED( layer )
return false;
}

View File

@ -62,7 +62,7 @@ static QgsRectangle transform_to_extent( const double *geotransform, double xSiz
static int CPL_STDCALL _progress( double dfComplete, const char *pszMessage, void *pProgressArg )
{
Q_UNUSED( pszMessage );
Q_UNUSED( pszMessage )
QgsAlignRaster::ProgressHandler *handler = ( ( QgsAlignRaster * ) pProgressArg )->progressHandler();
if ( handler )

View File

@ -293,7 +293,7 @@ double QgsKernelDensityEstimation::calculateKernelValue( const double distance,
double QgsKernelDensityEstimation::uniformKernel( const double distance, const double bandwidth, const QgsKernelDensityEstimation::OutputValues outputType ) const
{
Q_UNUSED( distance );
Q_UNUSED( distance )
switch ( outputType )
{
case OutputScaled:

View File

@ -121,7 +121,7 @@ class ANALYSIS_EXPORT QgsNineCellFilter
*/
virtual void addExtraRasterParams( std::vector<float> &params )
{
Q_UNUSED( params );
Q_UNUSED( params )
}
virtual const QString openClProgramBaseName() const

View File

@ -110,7 +110,7 @@ void addToTmpNodes(QgsRasterCalcNode* node)
void joinTmpNodes(QgsRasterCalcNode* parent, QgsRasterCalcNode* left, QgsRasterCalcNode* right)
{
bool res;
Q_UNUSED(res);
Q_UNUSED(res)
if (left)
{

View File

@ -50,7 +50,7 @@ QgsVectorDataProviderFeaturePool::QgsVectorDataProviderFeaturePool( QgsVectorLay
bool QgsVectorDataProviderFeaturePool::addFeature( QgsFeature &feature, Flags flags )
{
Q_UNUSED( flags );
Q_UNUSED( flags )
QgsFeatureList features;
features.append( feature );
@ -90,7 +90,7 @@ bool QgsVectorDataProviderFeaturePool::addFeature( QgsFeature &feature, Flags fl
bool QgsVectorDataProviderFeaturePool::addFeatures( QgsFeatureList &features, QgsFeatureSink::Flags flags )
{
Q_UNUSED( flags );
Q_UNUSED( flags )
bool res = false;

View File

@ -29,7 +29,7 @@ QgsVectorLayerFeaturePool::QgsVectorLayerFeaturePool( QgsVectorLayer *layer )
bool QgsVectorLayerFeaturePool::addFeature( QgsFeature &feature, Flags flags )
{
Q_UNUSED( flags );
Q_UNUSED( flags )
bool res = false;
@ -67,7 +67,7 @@ bool QgsVectorLayerFeaturePool::addFeature( QgsFeature &feature, Flags flags )
bool QgsVectorLayerFeaturePool::addFeatures( QgsFeatureList &features, QgsFeatureSink::Flags flags )
{
Q_UNUSED( flags );
Q_UNUSED( flags )
bool res = false;

View File

@ -143,7 +143,7 @@ bool Qgs3DMapCanvas::eventFilter( QObject *watched, QEvent *event )
if ( !mMapTool )
return false;
Q_UNUSED( watched );
Q_UNUSED( watched )
switch ( event->type() )
{
case QEvent::MouseButtonPress:

View File

@ -25,17 +25,17 @@ Qgs3DMapTool::Qgs3DMapTool( Qgs3DMapCanvas *canvas )
void Qgs3DMapTool::mousePressEvent( QMouseEvent *event )
{
Q_UNUSED( event );
Q_UNUSED( event )
}
void Qgs3DMapTool::mouseReleaseEvent( QMouseEvent *event )
{
Q_UNUSED( event );
Q_UNUSED( event )
}
void Qgs3DMapTool::mouseMoveEvent( QMouseEvent *event )
{
Q_UNUSED( event );
Q_UNUSED( event )
}
void Qgs3DMapTool::activate()

View File

@ -69,7 +69,7 @@ Qgs3DMapToolIdentify::~Qgs3DMapToolIdentify() = default;
void Qgs3DMapToolIdentify::mousePressEvent( QMouseEvent *event )
{
Q_UNUSED( event );
Q_UNUSED( event )
QgsMapToolIdentifyAction *identifyTool2D = QgisApp::instance()->identifyMapTool();
identifyTool2D->clearResults();
@ -130,7 +130,7 @@ void Qgs3DMapToolIdentify::onTerrainPicked( Qt3DRender::QPickEvent *event )
}
catch ( QgsException &e )
{
Q_UNUSED( e );
Q_UNUSED( e )
QgsDebugMsg( QStringLiteral( "Caught exception %1" ).arg( e.what() ) );
}

View File

@ -37,8 +37,8 @@ class Qgs3DMapToolIdentify : public Qgs3DMapTool
~Qgs3DMapToolIdentify() override;
void mousePressEvent( QMouseEvent *event ) override;
void mouseReleaseEvent( QMouseEvent *event ) override { Q_UNUSED( event );}
void mouseMoveEvent( QMouseEvent *event ) override {Q_UNUSED( event );}
void mouseReleaseEvent( QMouseEvent *event ) override { Q_UNUSED( event )}
void mouseMoveEvent( QMouseEvent *event ) override {Q_UNUSED( event )}
void activate() override;
void deactivate() override;

View File

@ -35,7 +35,7 @@ QgsMesh3DSymbolWidget::QgsMesh3DSymbolWidget( QWidget *parent )
void QgsMesh3DSymbolWidget::setSymbol( const QgsMesh3DSymbol &symbol, QgsMeshLayer *layer )
{
Q_UNUSED( layer );
Q_UNUSED( layer )
spinHeight->setValue( symbol.height() );
cboAltClamping->setCurrentIndex( static_cast<int>( symbol.altitudeClamping() ) );

View File

@ -435,7 +435,7 @@ QMimeData *QgsRuleBased3DRendererModel::mimeData( const QModelIndexList &indexes
bool QgsRuleBased3DRendererModel::dropMimeData( const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent )
{
Q_UNUSED( column );
Q_UNUSED( column )
if ( action == Qt::IgnoreAction )
return true;

View File

@ -110,7 +110,7 @@ void QgsDecorationCopyright::run()
void QgsDecorationCopyright::render( const QgsMapSettings &mapSettings, QgsRenderContext &context )
{
Q_UNUSED( mapSettings );
Q_UNUSED( mapSettings )
if ( !enabled() )
return;

View File

@ -248,6 +248,6 @@ void QgsDecorationNorthArrowDialog::drawNorthArrow()
void QgsDecorationNorthArrowDialog::resizeEvent( QResizeEvent *resizeEvent )
{
Q_UNUSED( resizeEvent );
Q_UNUSED( resizeEvent )
drawNorthArrow();
}

View File

@ -99,7 +99,7 @@ void QgsDecorationTitle::run()
void QgsDecorationTitle::render( const QgsMapSettings &mapSettings, QgsRenderContext &context )
{
Q_UNUSED( mapSettings );
Q_UNUSED( mapSettings )
if ( !enabled() )
return;

View File

@ -135,7 +135,7 @@ void QgsDwgImportDialog::mDatabaseFileWidget_textChanged( const QString &filenam
void QgsDwgImportDialog::leLayerGroup_textChanged( const QString &text )
{
Q_UNUSED( text );
Q_UNUSED( text )
updateUI();
}

View File

@ -1023,7 +1023,7 @@ void QgsDwgImporter::addDimStyle( const DRW_Dimstyle &data )
void QgsDwgImporter::addVport( const DRW_Vport &data )
{
Q_UNUSED( data );
Q_UNUSED( data )
}
void QgsDwgImporter::addTextStyle( const DRW_Textstyle &data )
@ -1055,7 +1055,7 @@ void QgsDwgImporter::addTextStyle( const DRW_Textstyle &data )
void QgsDwgImporter::addAppId( const DRW_AppId &data )
{
Q_UNUSED( data );
Q_UNUSED( data )
}
bool QgsDwgImporter::createFeature( OGRLayerH layer, OGRFeatureH f, const QgsAbstractGeometry &g0 ) const
@ -1120,7 +1120,7 @@ void QgsDwgImporter::addBlock( const DRW_Block &data )
void QgsDwgImporter::setBlock( const int handle )
{
Q_UNUSED( handle );
Q_UNUSED( handle )
}
void QgsDwgImporter::endBlock()
@ -1186,13 +1186,13 @@ void QgsDwgImporter::addPoint( const DRW_Point &data )
void QgsDwgImporter::addRay( const DRW_Ray &data )
{
Q_UNUSED( data );
Q_UNUSED( data )
NYI( tr( "RAY entities" ) );
}
void QgsDwgImporter::addXline( const DRW_Xline &data )
{
Q_UNUSED( data );
Q_UNUSED( data )
NYI( tr( "XLINE entities" ) );
}
@ -2003,7 +2003,7 @@ void QgsDwgImporter::addSpline( const DRW_Spline *data )
void QgsDwgImporter::addKnot( const DRW_Entity &data )
{
Q_UNUSED( data );
Q_UNUSED( data )
NYI( tr( "KNOT entities" ) );
}
@ -2043,13 +2043,13 @@ void QgsDwgImporter::addInsert( const DRW_Insert &data )
void QgsDwgImporter::addTrace( const DRW_Trace &data )
{
Q_UNUSED( data );
Q_UNUSED( data )
NYI( tr( "TRACE entities" ) );
}
void QgsDwgImporter::add3dFace( const DRW_3Dface &data )
{
Q_UNUSED( data );
Q_UNUSED( data )
NYI( tr( "3DFACE entities" ) );
}
@ -2167,49 +2167,49 @@ void QgsDwgImporter::addText( const DRW_Text &data )
void QgsDwgImporter::addDimAlign( const DRW_DimAligned *data )
{
Q_UNUSED( data );
Q_UNUSED( data )
NYI( tr( "DIMALIGN entities" ) );
}
void QgsDwgImporter::addDimLinear( const DRW_DimLinear *data )
{
Q_UNUSED( data );
Q_UNUSED( data )
NYI( tr( "DIMLINEAR entities" ) );
}
void QgsDwgImporter::addDimRadial( const DRW_DimRadial *data )
{
Q_UNUSED( data );
Q_UNUSED( data )
NYI( tr( "DIMRADIAL entities" ) );
}
void QgsDwgImporter::addDimDiametric( const DRW_DimDiametric *data )
{
Q_UNUSED( data );
Q_UNUSED( data )
NYI( tr( "DIMDIAMETRIC entities" ) );
}
void QgsDwgImporter::addDimAngular( const DRW_DimAngular *data )
{
Q_UNUSED( data );
Q_UNUSED( data )
NYI( tr( "DIMANGULAR entities" ) );
}
void QgsDwgImporter::addDimAngular3P( const DRW_DimAngular3p *data )
{
Q_UNUSED( data );
Q_UNUSED( data )
NYI( tr( "DIMANGULAR3P entities" ) );
}
void QgsDwgImporter::addDimOrdinate( const DRW_DimOrdinate *data )
{
Q_UNUSED( data );
Q_UNUSED( data )
NYI( tr( "DIMORDINAL entities" ) );
}
void QgsDwgImporter::addLeader( const DRW_Leader *data )
{
Q_UNUSED( data );
Q_UNUSED( data )
NYI( tr( "LEADER entities" ) );
}
@ -2368,25 +2368,25 @@ void QgsDwgImporter::addLine( const DRW_Line &data )
void QgsDwgImporter::addViewport( const DRW_Viewport &data )
{
Q_UNUSED( data );
Q_UNUSED( data )
NYI( tr( "VIEWPORT entities" ) );
}
void QgsDwgImporter::addImage( const DRW_Image *data )
{
Q_UNUSED( data );
Q_UNUSED( data )
NYI( tr( "IMAGE entities" ) );
}
void QgsDwgImporter::linkImage( const DRW_ImageDef *data )
{
Q_UNUSED( data );
Q_UNUSED( data )
NYI( tr( "image links" ) );
}
void QgsDwgImporter::addComment( const char *comment )
{
Q_UNUSED( comment );
Q_UNUSED( comment )
NYI( tr( "comments" ) );
}
@ -2480,7 +2480,7 @@ bool QgsDwgImporter::expandInserts( QString &error, int block, QTransform base )
}
GIntBig n = OGR_L_GetFeatureCount( inserts, 0 );
Q_UNUSED( n );
Q_UNUSED( n )
OGR_L_ResetReading( inserts );
@ -2570,7 +2570,7 @@ bool QgsDwgImporter::expandInserts( QString &error, int block, QTransform base )
}
GIntBig n = OGR_L_GetFeatureCount( src, 0 );
Q_UNUSED( n );
Q_UNUSED( n )
dfn = OGR_L_GetLayerDefn( src );
Q_ASSERT( dfn );
@ -2612,7 +2612,7 @@ bool QgsDwgImporter::expandInserts( QString &error, int block, QTransform base )
break;
GIntBig fid = OGR_F_GetFID( f.get() );
Q_UNUSED( fid );
Q_UNUSED( fid )
ogrG = OGR_F_GetGeometryRef( f.get() );
if ( !ogrG )

View File

@ -50,7 +50,7 @@ void QgsGpsMarker::setCenter( const QgsPointXY &point )
}
catch ( QgsCsException &e ) //silently ignore transformation exceptions
{
Q_UNUSED( e );
Q_UNUSED( e )
return;
}
}

View File

@ -56,7 +56,7 @@ QModelIndex QgsLayoutAttributeTableColumnModel::index( int row, int column, cons
QModelIndex QgsLayoutAttributeTableColumnModel::parent( const QModelIndex &child ) const
{
Q_UNUSED( child );
Q_UNUSED( child )
return QModelIndex();
}
@ -70,7 +70,7 @@ int QgsLayoutAttributeTableColumnModel::rowCount( const QModelIndex &parent ) co
int QgsLayoutAttributeTableColumnModel::columnCount( const QModelIndex &parent ) const
{
Q_UNUSED( parent );
Q_UNUSED( parent )
return 4;
}
@ -275,7 +275,7 @@ Qt::ItemFlags QgsLayoutAttributeTableColumnModel::flags( const QModelIndex &inde
bool QgsLayoutAttributeTableColumnModel::removeRows( int row, int count, const QModelIndex &parent )
{
Q_UNUSED( parent );
Q_UNUSED( parent )
int maxRow = std::min( row + count - 1, mTable->columns().length() - 1 );
beginRemoveRows( QModelIndex(), row, maxRow );
@ -291,7 +291,7 @@ bool QgsLayoutAttributeTableColumnModel::removeRows( int row, int count, const Q
bool QgsLayoutAttributeTableColumnModel::insertRows( int row, int count, const QModelIndex &parent )
{
Q_UNUSED( parent );
Q_UNUSED( parent )
beginInsertRows( QModelIndex(), row, row + count - 1 );
//create new QgsComposerTableColumns for each inserted row
for ( int i = row; i < row + count; ++i )
@ -514,7 +514,7 @@ bool QgsLayoutTableSortColumnsProxyModel::lessThan( const QModelIndex &left, con
int QgsLayoutTableSortColumnsProxyModel::columnCount( const QModelIndex &parent ) const
{
Q_UNUSED( parent );
Q_UNUSED( parent )
return 2;
}
@ -652,8 +652,8 @@ QgsLayoutColumnAlignmentDelegate::QgsLayoutColumnAlignmentDelegate( QObject *par
QWidget *QgsLayoutColumnAlignmentDelegate::createEditor( QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index ) const
{
Q_UNUSED( option );
Q_UNUSED( index );
Q_UNUSED( option )
Q_UNUSED( index )
//create a combo box showing alignment options
QComboBox *comboBox = new QComboBox( parent );
@ -692,7 +692,7 @@ void QgsLayoutColumnAlignmentDelegate::setModelData( QWidget *editor, QAbstractI
void QgsLayoutColumnAlignmentDelegate::updateEditorGeometry( QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index ) const
{
Q_UNUSED( index );
Q_UNUSED( index )
editor->setGeometry( option.rect );
}
@ -722,8 +722,8 @@ QgsExpressionContext QgsLayoutColumnSourceDelegate::createExpressionContext() co
QWidget *QgsLayoutColumnSourceDelegate::createEditor( QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index ) const
{
Q_UNUSED( option );
Q_UNUSED( index );
Q_UNUSED( option )
Q_UNUSED( index )
QgsFieldExpressionWidget *fieldExpression = new QgsFieldExpressionWidget( parent );
fieldExpression->setLayer( mVectorLayer );
@ -753,7 +753,7 @@ void QgsLayoutColumnSourceDelegate::setModelData( QWidget *editor, QAbstractItem
void QgsLayoutColumnSourceDelegate::updateEditorGeometry( QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index ) const
{
Q_UNUSED( index );
Q_UNUSED( index )
editor->setGeometry( option.rect );
}
@ -773,8 +773,8 @@ QgsLayoutColumnSortOrderDelegate::QgsLayoutColumnSortOrderDelegate( QObject *par
QWidget *QgsLayoutColumnSortOrderDelegate::createEditor( QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index ) const
{
Q_UNUSED( option );
Q_UNUSED( index );
Q_UNUSED( option )
Q_UNUSED( index )
QComboBox *comboBox = new QComboBox( parent );
QStringList sortOrders;
@ -822,7 +822,7 @@ void QgsLayoutColumnSortOrderDelegate::setModelData( QWidget *editor, QAbstractI
void QgsLayoutColumnSortOrderDelegate::updateEditorGeometry( QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index ) const
{
Q_UNUSED( index );
Q_UNUSED( index )
editor->setGeometry( option.rect );
}
@ -839,8 +839,8 @@ QgsLayoutColumnWidthDelegate::QgsLayoutColumnWidthDelegate( QObject *parent )
QWidget *QgsLayoutColumnWidthDelegate::createEditor( QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index ) const
{
Q_UNUSED( index );
Q_UNUSED( option );
Q_UNUSED( index )
Q_UNUSED( option )
QgsDoubleSpinBox *editor = new QgsDoubleSpinBox( parent );
editor->setMinimum( 0 );
editor->setMaximum( 1000 );
@ -870,7 +870,7 @@ void QgsLayoutColumnWidthDelegate::setModelData( QWidget *editor, QAbstractItemM
void QgsLayoutColumnWidthDelegate::updateEditorGeometry( QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index ) const
{
Q_UNUSED( index );
Q_UNUSED( index )
editor->setGeometry( option.rect );
}

View File

@ -921,7 +921,7 @@ void QgsLayoutLegendWidget::mAddGroupToolButton_clicked()
void QgsLayoutLegendWidget::mFilterLegendByAtlasCheckBox_toggled( bool toggled )
{
Q_UNUSED( toggled );
Q_UNUSED( toggled )
if ( mLegend )
{
mLegend->setLegendFilterOutAtlas( toggled );
@ -1011,8 +1011,8 @@ void QgsLayoutLegendWidget::blockAllSignals( bool b )
void QgsLayoutLegendWidget::selectedChanged( const QModelIndex &current, const QModelIndex &previous )
{
Q_UNUSED( current );
Q_UNUSED( previous );
Q_UNUSED( current )
Q_UNUSED( previous )
if ( mLegend && mLegend->autoUpdateModel() )
return;

View File

@ -905,7 +905,7 @@ void QgsLayoutMapGridWidget::mMapGridUnitComboBox_currentIndexChanged( const QSt
void QgsLayoutMapGridWidget::mGridBlendComboBox_currentIndexChanged( int index )
{
Q_UNUSED( index );
Q_UNUSED( index )
if ( mMapGrid )
{
mMap->beginCommand( tr( "Change Grid Blend Mode" ) );

View File

@ -1073,7 +1073,7 @@ QgsLayoutItemMapGrid *QgsLayoutMapWidget::currentGrid()
void QgsLayoutMapWidget::mGridListWidget_currentItemChanged( QListWidgetItem *current, QListWidgetItem *previous )
{
Q_UNUSED( previous );
Q_UNUSED( previous )
if ( !current )
{
mDrawGridCheckBox->setEnabled( false );
@ -1296,7 +1296,7 @@ QgsLayoutItemMapOverview *QgsLayoutMapWidget::currentOverview()
void QgsLayoutMapWidget::mOverviewListWidget_currentItemChanged( QListWidgetItem *current, QListWidgetItem *previous )
{
Q_UNUSED( previous );
Q_UNUSED( previous )
if ( !current )
{
mOverviewCheckBox->setEnabled( false );
@ -1496,7 +1496,7 @@ void QgsLayoutMapWidget::overviewMapChanged( QgsLayoutItem *item )
void QgsLayoutMapWidget::mOverviewBlendModeComboBox_currentIndexChanged( int index )
{
Q_UNUSED( index );
Q_UNUSED( index )
QgsLayoutItemMapOverview *overview = currentOverview();
if ( !overview )
{
@ -1731,7 +1731,7 @@ QVariant QgsLayoutMapItemBlocksLabelsModel::data( const QModelIndex &i, int role
bool QgsLayoutMapItemBlocksLabelsModel::setData( const QModelIndex &index, const QVariant &value, int role )
{
Q_UNUSED( role );
Q_UNUSED( role )
if ( !index.isValid() )
return false;

View File

@ -177,7 +177,7 @@ void QgsLayoutPictureWidget::mPictureRotationSpinBox_valueChanged( double d )
void QgsLayoutPictureWidget::mPreviewListWidget_currentItemChanged( QListWidgetItem *current, QListWidgetItem *previous )
{
Q_UNUSED( previous );
Q_UNUSED( previous )
if ( !mPicture || !current )
{
return;
@ -732,7 +732,7 @@ void QgsLayoutPictureWidget::mNorthTypeComboBox_currentIndexChanged( int index )
void QgsLayoutPictureWidget::resizeEvent( QResizeEvent *event )
{
Q_UNUSED( event );
Q_UNUSED( event )
mSearchDirectoriesComboBox->setMinimumWidth( mPreviewListWidget->sizeHint().width() );
}

View File

@ -597,7 +597,7 @@ void QgsLayoutScaleBarWidget::disconnectUpdateSignal()
void QgsLayoutScaleBarWidget::mLineJoinStyleCombo_currentIndexChanged( int index )
{
Q_UNUSED( index );
Q_UNUSED( index )
if ( !mScalebar )
{
return;
@ -610,7 +610,7 @@ void QgsLayoutScaleBarWidget::mLineJoinStyleCombo_currentIndexChanged( int index
void QgsLayoutScaleBarWidget::mLineCapStyleCombo_currentIndexChanged( int index )
{
Q_UNUSED( index );
Q_UNUSED( index )
if ( !mScalebar )
{
return;

View File

@ -293,7 +293,7 @@ static void dumpBacktrace( unsigned int depth )
#elif defined(Q_OS_WIN)
// TODO Replace with incoming QgsStackTrace
#else
Q_UNUSED( depth );
Q_UNUSED( depth )
#endif
}
@ -469,7 +469,7 @@ int main( int argc, char *argv[] )
.arg( rescLimit.rlim_cur ).arg( rescLimit.rlim_max ) );
}
}
Q_UNUSED( oldSoft ); //avoid warnings
Q_UNUSED( oldSoft ) //avoid warnings
QgsDebugMsg( QStringLiteral( "Mac RLIMIT_NOFILE Soft/Hard ORIG: %1 / %2" )
.arg( oldSoft ).arg( oldHard ) );
}

View File

@ -202,7 +202,7 @@ std::unique_ptr<QgsMeshCalculator> QgsMeshCalculatorDialog::calculator() const
void QgsMeshCalculatorDialog::toggleExtendMask( int state )
{
Q_UNUSED( state );
Q_UNUSED( state )
if ( useMaskCb->checkState() == Qt::Checked )
{
extendBox->setVisible( false );

View File

@ -100,7 +100,7 @@ QgsMeshDatasetGroupTreeModel::QgsMeshDatasetGroupTreeModel( QObject *parent )
int QgsMeshDatasetGroupTreeModel::columnCount( const QModelIndex &parent ) const
{
Q_UNUSED( parent );
Q_UNUSED( parent )
return 1;
}
@ -193,7 +193,7 @@ QVariant QgsMeshDatasetGroupTreeModel::headerData( int section,
Qt::Orientation orientation,
int role ) const
{
Q_UNUSED( section );
Q_UNUSED( section )
if ( orientation == Qt::Horizontal && role == Qt::DisplayRole )
return tr( "Groups" );

View File

@ -29,8 +29,8 @@ QgsPluginItemDelegate::QgsPluginItemDelegate( QObject *parent ) : QStyledItemDel
QSize QgsPluginItemDelegate::sizeHint( const QStyleOptionViewItem &option, const QModelIndex &index ) const
{
Q_UNUSED( option );
Q_UNUSED( index );
Q_UNUSED( option )
Q_UNUSED( index )
// Calculate row height, adds some 20% padding
int pixelsHigh = QApplication::fontMetrics().height() * 1.4;
return QSize( pixelsHigh, pixelsHigh );

View File

@ -1761,7 +1761,7 @@ void QgisApp::annotationCreated( QgsAnnotation *annotation )
for ( QgsMapCanvas *canvas : canvases )
{
QgsMapCanvasAnnotationItem *canvasItem = new QgsMapCanvasAnnotationItem( annotation, canvas );
Q_UNUSED( canvasItem ); //item is already added automatically to canvas scene
Q_UNUSED( canvasItem ) //item is already added automatically to canvas scene
}
}
@ -3842,7 +3842,7 @@ QgsMapCanvasDockWidget *QgisApp::createNewMapCanvasDock( const QString &name )
for ( QgsAnnotation *annotation : constAnnotations )
{
QgsMapCanvasAnnotationItem *canvasItem = new QgsMapCanvasAnnotationItem( annotation, mapCanvas );
Q_UNUSED( canvasItem ); //item is already added automatically to canvas scene
Q_UNUSED( canvasItem ) //item is already added automatically to canvas scene
}
markDirty();
@ -6456,7 +6456,7 @@ void QgisApp::runScript( const QString &filePath )
tr( "Failed to run Python script:" ), false );
}
#else
Q_UNUSED( filePath );
Q_UNUSED( filePath )
#endif
}
@ -6908,7 +6908,7 @@ void QgisApp::addWindow( QAction *action )
action->setCheckable( true );
action->setChecked( true );
#else
Q_UNUSED( action );
Q_UNUSED( action )
#endif
}
@ -6918,7 +6918,7 @@ void QgisApp::removeWindow( QAction *action )
mWindowActions->removeAction( action );
mWindowMenu->removeAction( action );
#else
Q_UNUSED( action );
Q_UNUSED( action )
#endif
}
@ -10479,8 +10479,8 @@ class QgsPythonRunnerImpl : public QgsPythonRunner
return mPythonUtils->runString( command, messageOnError, false );
}
#else
Q_UNUSED( command );
Q_UNUSED( messageOnError );
Q_UNUSED( command )
Q_UNUSED( messageOnError )
#endif
return false;
}
@ -10493,8 +10493,8 @@ class QgsPythonRunnerImpl : public QgsPythonRunner
return mPythonUtils->evalString( command, result );
}
#else
Q_UNUSED( command );
Q_UNUSED( result );
Q_UNUSED( command )
Q_UNUSED( result )
#endif
return false;
}
@ -11412,7 +11412,7 @@ Qgs3DMapCanvasDockWidget *QgisApp::createNew3DMapCanvasDock( const QString &name
map3DWidget->setMainCanvas( mMapCanvas );
return map3DWidget;
#else
Q_UNUSED( name );
Q_UNUSED( name )
return nullptr;
#endif
}
@ -13605,7 +13605,7 @@ void QgisApp::takeAppScreenShots( const QString &saveDirectory, const int catego
void QgisApp::oldProjectVersionWarning( const QString &oldVersion )
{
Q_UNUSED( oldVersion );
Q_UNUSED( oldVersion )
QgsSettings settings;
if ( settings.value( QStringLiteral( "qgis/warnOldProjectVersion" ), QVariant( true ) ).toBool() )
@ -13641,7 +13641,7 @@ void QgisApp::updateUndoActions()
// add project directory to python path
void QgisApp::projectChanged( const QDomDocument &doc )
{
Q_UNUSED( doc );
Q_UNUSED( doc )
QgsProject *project = qobject_cast<QgsProject *>( sender() );
if ( !project )
return;
@ -14293,7 +14293,7 @@ bool QgisApp::gestureEvent( QGestureEvent *event )
}
return true;
#else
Q_UNUSED( event );
Q_UNUSED( event )
return false;
#endif
}

View File

@ -686,7 +686,7 @@ QAction *QgisAppInterface::actionAbout() { return qgis->actionAbout(); }
bool QgisAppInterface::openFeatureForm( QgsVectorLayer *vlayer, QgsFeature &f, bool updateFeatureOnly, bool showModal )
{
Q_UNUSED( updateFeatureOnly );
Q_UNUSED( updateFeatureOnly )
if ( !vlayer )
return false;

View File

@ -612,7 +612,7 @@ QList< LegendLayerAction > QgsAppLayerTreeViewMenuProvider::legendLayerActions(
const auto legendLayerActions { mLegendLayerActionMap.value( type ) };
for ( const LegendLayerAction &lyrAction : legendLayerActions )
{
Q_UNUSED( lyrAction );
Q_UNUSED( lyrAction )
QgsDebugMsg( QStringLiteral( "%1/%2 - %3 layers" ).arg( lyrAction.menu, lyrAction.action->text() ).arg( lyrAction.layers.count() ) );
}
}

View File

@ -551,7 +551,7 @@ void QgsAttributesFormProperties::onAttributeSelectionChanged()
void QgsAttributesFormProperties::onInvertSelectionButtonClicked( bool checked )
{
Q_UNUSED( checked );
Q_UNUSED( checked )
const auto selectedItemList { mFormLayoutTree->selectedItems() };
const auto rootItem { mFormLayoutTree->invisibleRootItem() };
for ( int i = 0; i < rootItem->childCount(); ++i )

View File

@ -398,7 +398,7 @@ void QgsAttributeTableDialog::updateTitle()
void QgsAttributeTableDialog::updateButtonStatus( const QString &fieldName, bool isValid )
{
Q_UNUSED( fieldName );
Q_UNUSED( fieldName )
mRunFieldCalc->setEnabled( isValid );
}
@ -1239,6 +1239,6 @@ QgsAttributeTableDock::QgsAttributeTableDock( const QString &title, QWidget *par
void QgsAttributeTableDock::closeEvent( QCloseEvent *ev )
{
Q_UNUSED( ev );
Q_UNUSED( ev )
deleteLater();
}

View File

@ -227,7 +227,7 @@ void QgsBookmarks::deleteClicked()
void QgsBookmarks::lstBookmarks_doubleClicked( const QModelIndex &index )
{
Q_UNUSED( index );
Q_UNUSED( index )
zoomToBookmark();
}
@ -461,13 +461,13 @@ QgsProjectBookmarksTableModel::QgsProjectBookmarksTableModel( QObject *parent )
int QgsProjectBookmarksTableModel::rowCount( const QModelIndex &parent ) const
{
Q_UNUSED( parent );
Q_UNUSED( parent )
return QgsProject::instance()->readNumEntry( QStringLiteral( "Bookmarks" ), QStringLiteral( "/count" ) );
}
int QgsProjectBookmarksTableModel::columnCount( const QModelIndex &parent ) const
{
Q_UNUSED( parent );
Q_UNUSED( parent )
return 8;
}
@ -501,7 +501,7 @@ QVariant QgsProjectBookmarksTableModel::data( const QModelIndex &index, int role
bool QgsProjectBookmarksTableModel::setData( const QModelIndex &index, const QVariant &value, int role )
{
Q_UNUSED( role );
Q_UNUSED( role )
Q_ASSERT( role == Qt::EditRole );
switch ( index.column() )
@ -534,8 +534,8 @@ bool QgsProjectBookmarksTableModel::setData( const QModelIndex &index, const QVa
bool QgsProjectBookmarksTableModel::insertRows( int row, int count, const QModelIndex &parent )
{
Q_UNUSED( parent );
Q_UNUSED( row );
Q_UNUSED( parent )
Q_UNUSED( row )
// append
int oldCount = QgsProject::instance()->readNumEntry( QStringLiteral( "Bookmarks" ), QStringLiteral( "/count" ) );
beginInsertRows( parent, oldCount, oldCount + count );
@ -546,7 +546,7 @@ bool QgsProjectBookmarksTableModel::insertRows( int row, int count, const QModel
bool QgsProjectBookmarksTableModel::removeRows( int row, int count, const QModelIndex &parent )
{
Q_UNUSED( parent );
Q_UNUSED( parent )
beginRemoveRows( parent, row, row + count );
for ( int newRow = row ; newRow < rowCount() - count ; newRow++ )
{

View File

@ -220,7 +220,7 @@ void QgsCustomizationDialog::cancel()
void QgsCustomizationDialog::actionSave_triggered( bool checked )
{
Q_UNUSED( checked );
Q_UNUSED( checked )
QSettings mySettings;
QString lastDir = mySettings.value( mLastDirSettingsName, QDir::homePath() ).toString();
@ -247,7 +247,7 @@ void QgsCustomizationDialog::actionSave_triggered( bool checked )
void QgsCustomizationDialog::actionLoad_triggered( bool checked )
{
Q_UNUSED( checked );
Q_UNUSED( checked )
QSettings mySettings;
QString lastDir = mySettings.value( mLastDirSettingsName, QDir::homePath() ).toString();
@ -266,19 +266,19 @@ void QgsCustomizationDialog::actionLoad_triggered( bool checked )
void QgsCustomizationDialog::actionExpandAll_triggered( bool checked )
{
Q_UNUSED( checked );
Q_UNUSED( checked )
treeWidget->expandAll();
}
void QgsCustomizationDialog::actionCollapseAll_triggered( bool checked )
{
Q_UNUSED( checked );
Q_UNUSED( checked )
treeWidget->collapseAll();
}
void QgsCustomizationDialog::actionSelectAll_triggered( bool checked )
{
Q_UNUSED( checked );
Q_UNUSED( checked )
QList<QTreeWidgetItem *> items = treeWidget->findItems( QStringLiteral( "*" ), Qt::MatchWildcard | Qt::MatchRecursive, 0 );
const auto constItems = items;
@ -380,7 +380,7 @@ QTreeWidgetItem *QgsCustomizationDialog::readWidgetsXmlNode( const QDomNode &nod
bool QgsCustomizationDialog::switchWidget( QWidget *widget, QMouseEvent *e )
{
Q_UNUSED( e );
Q_UNUSED( e )
if ( !actionCatch->isChecked() )
return false;
@ -794,7 +794,7 @@ void QgsCustomization::openDialog( QWidget *parent )
void QgsCustomization::customizeWidget( QWidget *widget, QEvent *event, QSettings *settings )
{
Q_UNUSED( event );
Q_UNUSED( event )
// Test if the widget is child of QDialog
if ( !widget->inherits( "QDialog" ) )
return;

View File

@ -56,7 +56,7 @@ void QgsDatumTransformTableModel::removeTransform( const QModelIndexList &indexe
int QgsDatumTransformTableModel::rowCount( const QModelIndex &parent ) const
{
Q_UNUSED( parent );
Q_UNUSED( parent )
return mTransformContext.sourceDestinationDatumTransforms().count()
#ifdef singlesourcedest
+ mTransformContext.sourceDatumTransforms().count()
@ -67,7 +67,7 @@ int QgsDatumTransformTableModel::rowCount( const QModelIndex &parent ) const
int QgsDatumTransformTableModel::columnCount( const QModelIndex &parent ) const
{
Q_UNUSED( parent );
Q_UNUSED( parent )
return 4;
}

View File

@ -617,7 +617,7 @@ void QgsDiagramProperties::mAddCategoryPushButton_clicked()
void QgsDiagramProperties::mAttributesTreeWidget_itemDoubleClicked( QTreeWidgetItem *item, int column )
{
Q_UNUSED( column );
Q_UNUSED( column )
addAttribute( item );
}

View File

@ -43,7 +43,7 @@ FieldSelectorDelegate::FieldSelectorDelegate( QObject *parent )
QWidget *FieldSelectorDelegate::createEditor( QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index ) const
{
Q_UNUSED( option );
Q_UNUSED( option )
const QgsVectorLayerAndAttributeModel *m = qobject_cast< const QgsVectorLayerAndAttributeModel *>( index.model() );
if ( !m )
@ -102,7 +102,7 @@ QgsVectorLayerAndAttributeModel::QgsVectorLayerAndAttributeModel( QgsLayerTree *
int QgsVectorLayerAndAttributeModel::columnCount( const QModelIndex &parent ) const
{
Q_UNUSED( parent );
Q_UNUSED( parent )
return 2;
}
@ -507,7 +507,7 @@ QgsDxfExportDialog::~QgsDxfExportDialog()
void QgsDxfExportDialog::mVisibilityPresets_currentIndexChanged( int index )
{
Q_UNUSED( index );
Q_UNUSED( index )
QgsVectorLayerAndAttributeModel *model = qobject_cast< QgsVectorLayerAndAttributeModel * >( mTreeView->model() );
Q_ASSERT( model );
model->applyVisibilityPreset( mVisibilityPresets->currentText() );

View File

@ -444,7 +444,7 @@ void QgsFieldCalculator::mCreateVirtualFieldCheckbox_stateChanged( int state )
void QgsFieldCalculator::mOutputFieldNameLineEdit_textChanged( const QString &text )
{
Q_UNUSED( text );
Q_UNUSED( text )
setOkButtonState();
}

View File

@ -282,7 +282,7 @@ QgsIdentifyResultsWebViewItem::QgsIdentifyResultsWebViewItem( QTreeWidget *treeW
void QgsIdentifyResultsWebViewItem::loadFinished( bool ok )
{
Q_UNUSED( ok );
Q_UNUSED( ok )
mWebView->show();
treeWidget()->setItemWidget( this, 0, mWebView );
@ -1156,7 +1156,7 @@ void QgsIdentifyResultsDialog::show()
void QgsIdentifyResultsDialog::itemClicked( QTreeWidgetItem *item, int column )
{
Q_UNUSED( column );
Q_UNUSED( column )
if ( item->data( 0, Qt::UserRole ).toString() == QLatin1String( "edit" ) )
{
lstResults->setCurrentItem( item );
@ -1577,14 +1577,14 @@ QTreeWidgetItem *QgsIdentifyResultsDialog::retrieveAttributes( QTreeWidgetItem *
void QgsIdentifyResultsDialog::itemExpanded( QTreeWidgetItem *item )
{
Q_UNUSED( item );
Q_UNUSED( item )
// column width is now stored in settings
//expandColumnsToFit();
}
void QgsIdentifyResultsDialog::handleCurrentItemChanged( QTreeWidgetItem *current, QTreeWidgetItem *previous )
{
Q_UNUSED( previous );
Q_UNUSED( previous )
mActionPrint->setEnabled( false );
@ -2068,7 +2068,7 @@ void QgsIdentifyResultsDialog::mExpandNewAction_triggered( bool checked )
void QgsIdentifyResultsDialog::mActionCopy_triggered( bool checked )
{
Q_UNUSED( checked );
Q_UNUSED( checked )
copyFeature();
}

View File

@ -244,8 +244,8 @@ class APP_EXPORT QgsIdentifyResultsDialog: public QDialog, private Ui::QgsIdenti
void cbxAutoFeatureForm_toggled( bool checked );
void mExpandAction_triggered( bool checked ) { Q_UNUSED( checked ); expandAll(); }
void mCollapseAction_triggered( bool checked ) { Q_UNUSED( checked ); collapseAll(); }
void mExpandAction_triggered( bool checked ) { Q_UNUSED( checked ) expandAll(); }
void mCollapseAction_triggered( bool checked ) { Q_UNUSED( checked ) collapseAll(); }
void mActionCopy_triggered( bool checked );

View File

@ -88,7 +88,7 @@ bool QgsLayerCapabilitiesModel::searchable( QgsMapLayer *layer ) const
int QgsLayerCapabilitiesModel::columnCount( const QModelIndex &parent ) const
{
Q_UNUSED( parent );
Q_UNUSED( parent )
return 5;
}

View File

@ -684,7 +684,7 @@ QgsLayerStyleManagerWidgetFactory::QgsLayerStyleManagerWidgetFactory()
QgsMapLayerConfigWidget *QgsLayerStyleManagerWidgetFactory::createWidget( QgsMapLayer *layer, QgsMapCanvas *canvas, bool dockMode, QWidget *parent ) const
{
Q_UNUSED( dockMode );
Q_UNUSED( dockMode )
return new QgsMapLayerStyleManagerWidget( layer, canvas, parent );
}

View File

@ -52,13 +52,13 @@ void QgsLayerTreeViewBadLayerIndicatorProvider::onIndicatorClicked( const QModel
QString QgsLayerTreeViewBadLayerIndicatorProvider::iconName( QgsMapLayer *layer )
{
Q_UNUSED( layer );
Q_UNUSED( layer )
return QStringLiteral( "/mIndicatorBadLayer.svg" );
}
QString QgsLayerTreeViewBadLayerIndicatorProvider::tooltipText( QgsMapLayer *layer )
{
Q_UNUSED( layer );
Q_UNUSED( layer )
return tr( "<b>Unavailable layer!</b><br>Layer data source could not be found. Click to set a new data source" );
}

View File

@ -47,7 +47,7 @@ void QgsLayerTreeViewFilterIndicatorProvider::onIndicatorClicked( const QModelIn
QString QgsLayerTreeViewFilterIndicatorProvider::iconName( QgsMapLayer *layer )
{
Q_UNUSED( layer );
Q_UNUSED( layer )
return QStringLiteral( "/mIndicatorFilter.svg" );
}

View File

@ -50,13 +50,13 @@ bool QgsLayerTreeViewMemoryIndicatorProvider::acceptLayer( QgsMapLayer *layer )
QString QgsLayerTreeViewMemoryIndicatorProvider::iconName( QgsMapLayer *layer )
{
Q_UNUSED( layer );
Q_UNUSED( layer )
return QStringLiteral( "/mIndicatorMemory.svg" );
}
QString QgsLayerTreeViewMemoryIndicatorProvider::tooltipText( QgsMapLayer *layer )
{
Q_UNUSED( layer );
Q_UNUSED( layer )
return tr( "<b>Temporary scratch layer only!</b><br>Contents will be discarded after closing this project" );
}

View File

@ -28,13 +28,13 @@ QgsLayerTreeViewNonRemovableIndicatorProvider::QgsLayerTreeViewNonRemovableIndic
QString QgsLayerTreeViewNonRemovableIndicatorProvider::iconName( QgsMapLayer *layer )
{
Q_UNUSED( layer );
Q_UNUSED( layer )
return QStringLiteral( "/mIndicatorNonRemovable.svg" );
}
QString QgsLayerTreeViewNonRemovableIndicatorProvider::tooltipText( QgsMapLayer *layer )
{
Q_UNUSED( layer );
Q_UNUSED( layer )
return tr( "Layer required by the project" );
}

View File

@ -72,7 +72,7 @@ QDialog *QgsMapToolAnnotation::createItemEditor( QgsMapCanvasAnnotationItem *ite
void QgsMapToolAnnotation::canvasReleaseEvent( QgsMapMouseEvent *e )
{
Q_UNUSED( e );
Q_UNUSED( e )
mCurrentMoveAction = QgsMapCanvasAnnotationItem::NoAction;
mCanvas->setCursor( mCursor );

View File

@ -88,7 +88,7 @@ void QgsMapToolChangeLabelProperties::canvasPressEvent( QgsMapMouseEvent *e )
void QgsMapToolChangeLabelProperties::canvasReleaseEvent( QgsMapMouseEvent *e )
{
Q_UNUSED( e );
Q_UNUSED( e )
if ( mLabelRubberBand && mCurrentLabel.valid )
{
QString labeltext = QString(); // NULL QString signifies no expression

View File

@ -41,7 +41,7 @@ QgsMapToolDeletePart::~QgsMapToolDeletePart()
void QgsMapToolDeletePart::canvasMoveEvent( QgsMapMouseEvent *e )
{
Q_UNUSED( e );
Q_UNUSED( e )
//nothing to do
}
@ -83,7 +83,7 @@ void QgsMapToolDeletePart::canvasPressEvent( QgsMapMouseEvent *e )
void QgsMapToolDeletePart::canvasReleaseEvent( QgsMapMouseEvent *e )
{
Q_UNUSED( e );
Q_UNUSED( e )
delete mRubberBand;
mRubberBand = nullptr;

View File

@ -43,7 +43,7 @@ QgsMapToolDeleteRing::~QgsMapToolDeleteRing()
void QgsMapToolDeleteRing::canvasMoveEvent( QgsMapMouseEvent *e )
{
Q_UNUSED( e );
Q_UNUSED( e )
//nothing to do
}
@ -95,7 +95,7 @@ void QgsMapToolDeleteRing::canvasPressEvent( QgsMapMouseEvent *e )
void QgsMapToolDeleteRing::canvasReleaseEvent( QgsMapMouseEvent *e )
{
Q_UNUSED( e );
Q_UNUSED( e )
delete mRubberBand;
mRubberBand = nullptr;

View File

@ -166,7 +166,7 @@ void QgsMapToolDigitizeFeature::cadCanvasReleaseEvent( QgsMapMouseEvent *e )
}
catch ( QgsCsException &cse )
{
Q_UNUSED( cse );
Q_UNUSED( cse )
emit messageEmitted( tr( "Cannot transform the point to the layers coordinate system" ), Qgis::Warning );
return;
}

View File

@ -45,12 +45,12 @@ QgsMapToolFeatureAction::QgsMapToolFeatureAction( QgsMapCanvas *canvas )
void QgsMapToolFeatureAction::canvasMoveEvent( QgsMapMouseEvent *e )
{
Q_UNUSED( e );
Q_UNUSED( e )
}
void QgsMapToolFeatureAction::canvasPressEvent( QgsMapMouseEvent *e )
{
Q_UNUSED( e );
Q_UNUSED( e )
}
void QgsMapToolFeatureAction::canvasReleaseEvent( QgsMapMouseEvent *e )
@ -117,7 +117,7 @@ bool QgsMapToolFeatureAction::doAction( QgsVectorLayer *layer, int x, int y )
}
catch ( QgsCsException &cse )
{
Q_UNUSED( cse );
Q_UNUSED( cse )
// catch exception for 'invalid' point and proceed with no features found
QgsDebugMsg( QStringLiteral( "Caught CRS exception %1" ).arg( cse.what() ) );
}

View File

@ -75,7 +75,7 @@ void QgsMapToolOffsetPointSymbol::canvasPressEvent( QgsMapMouseEvent *e )
void QgsMapToolOffsetPointSymbol::canvasPressOnFeature( QgsMapMouseEvent *e, const QgsFeature &feature, const QgsPointXY &snappedPoint )
{
Q_UNUSED( e );
Q_UNUSED( e )
mClickedFeature = feature;
createPreviewItem( mMarkerSymbol.get() );
mOffsetItem->setPointLocation( snappedPoint );
@ -130,7 +130,7 @@ void QgsMapToolOffsetPointSymbol::canvasMoveEvent( QgsMapMouseEvent *e )
void QgsMapToolOffsetPointSymbol::canvasReleaseEvent( QgsMapMouseEvent *e )
{
Q_UNUSED( e );
Q_UNUSED( e )
if ( mOffsetting && mActiveLayer )
{

View File

@ -48,7 +48,7 @@ QgsMapToolPinLabels::~QgsMapToolPinLabels()
void QgsMapToolPinLabels::canvasPressEvent( QgsMapMouseEvent *e )
{
Q_UNUSED( e );
Q_UNUSED( e )
mSelectRect.setRect( 0, 0, 0, 0 );
mSelectRect.setTopLeft( e->pos() );
mSelectRect.setBottomRight( e->pos() );

View File

@ -41,7 +41,7 @@ QgsMapToolReverseLine::~QgsMapToolReverseLine()
void QgsMapToolReverseLine::canvasMoveEvent( QgsMapMouseEvent *e )
{
Q_UNUSED( e );
Q_UNUSED( e )
//nothing to do
}
@ -81,7 +81,7 @@ void QgsMapToolReverseLine::canvasPressEvent( QgsMapMouseEvent *e )
void QgsMapToolReverseLine::canvasReleaseEvent( QgsMapMouseEvent *e )
{
Q_UNUSED( e );
Q_UNUSED( e )
if ( !vlayer || !vlayer->isEditable() )
{

View File

@ -148,7 +148,7 @@ void QgsMapToolRotateLabel::canvasMoveEvent( QgsMapMouseEvent *e )
void QgsMapToolRotateLabel::canvasReleaseEvent( QgsMapMouseEvent *e )
{
Q_UNUSED( e );
Q_UNUSED( e )
if ( !mLabelRubberBand ) //no rubber band created (most likely because the current label cannot be rotated )
{

View File

@ -158,7 +158,7 @@ void QgsMapToolRotatePointSymbols::canvasMoveEvent( QgsMapMouseEvent *e )
void QgsMapToolRotatePointSymbols::canvasReleaseEvent( QgsMapMouseEvent *e )
{
Q_UNUSED( e );
Q_UNUSED( e )
if ( mRotating && mActiveLayer )
{

View File

@ -214,7 +214,7 @@ QgsFeatureIds QgsMapToolSelectUtils::getMatchingFeatures( QgsMapCanvas *canvas,
}
catch ( QgsCsException &cse )
{
Q_UNUSED( cse );
Q_UNUSED( cse )
// catch exception for 'invalid' point and leave existing selection unchanged
QgsDebugMsg( QStringLiteral( "Caught CRS exception " ) );
QgisApp::instance()->messageBar()->pushMessage(

View File

@ -46,7 +46,7 @@ QgsMapToolShowHideLabels::~QgsMapToolShowHideLabels()
void QgsMapToolShowHideLabels::canvasPressEvent( QgsMapMouseEvent *e )
{
Q_UNUSED( e );
Q_UNUSED( e )
QgsMapLayer *layer = mCanvas->currentLayer();
QgsVectorLayer *vlayer = qobject_cast<QgsVectorLayer *>( layer );
@ -203,7 +203,7 @@ bool QgsMapToolShowHideLabels::selectedFeatures( QgsVectorLayer *vlayer,
}
catch ( QgsCsException &cse )
{
Q_UNUSED( cse );
Q_UNUSED( cse )
// catch exception for 'invalid' point and leave existing selection unchanged
QgsLogger::warning( "Caught CRS exception " + QStringLiteral( __FILE__ ) + ": " + QString::number( __LINE__ ) );
emit messageEmitted( tr( "CRS Exception: selection extends beyond layer's coordinate system." ), Qgis::Warning );

View File

@ -105,7 +105,7 @@ void QgsSimplifyUserInputWidget::enableOkButton( bool enabled )
bool QgsSimplifyUserInputWidget::eventFilter( QObject *object, QEvent *ev )
{
Q_UNUSED( object );
Q_UNUSED( object )
if ( ev->type() == QEvent::KeyPress )
{
QKeyEvent *event = static_cast<QKeyEvent *>( ev );

View File

@ -181,7 +181,7 @@ void QgsMeasureTool::updateSettings()
void QgsMeasureTool::canvasPressEvent( QgsMapMouseEvent *e )
{
Q_UNUSED( e );
Q_UNUSED( e )
}
void QgsMeasureTool::canvasMoveEvent( QgsMapMouseEvent *e )

View File

@ -266,7 +266,7 @@ int QgsMergeAttributesDialog::findComboColumn( QComboBox *c ) const
void QgsMergeAttributesDialog::comboValueChanged( const QString &text )
{
Q_UNUSED( text );
Q_UNUSED( text )
QComboBox *senderComboBox = qobject_cast<QComboBox *>( sender() );
if ( !senderComboBox )
{

View File

@ -1796,7 +1796,7 @@ void QgsOptions::leLayerGlobalCrs_crsChanged( const QgsCoordinateReferenceSystem
void QgsOptions::lstGdalDrivers_itemDoubleClicked( QTreeWidgetItem *item, int column )
{
Q_UNUSED( column );
Q_UNUSED( column )
// edit driver if driver supports write
if ( item && ( cmbEditCreateOptions->findText( item->text( 0 ) ) != -1 ) )
{
@ -2144,7 +2144,7 @@ void QgsOptions::optionsStackedWidget_CurrentChanged( int index )
{
QgsOptionsDialogBase::optionsStackedWidget_CurrentChanged( index );
Q_UNUSED( index );
Q_UNUSED( index )
// load gdal driver list when gdal tab is first opened
if ( mOptionsStackedWidget->currentWidget()->objectName() == QLatin1String( "mOptionsPageGDAL" )
&& ! mLoadedGdalDriverList )

Some files were not shown because too many files have changed in this diff Show More