Skip to content
Permalink
Browse files

Remove unrequired ;

and make clang-tidy a bit more smiley
  • Loading branch information
m-kuhn committed May 15, 2019
1 parent 5844a0f commit 4d6fbd3f185266a50f21db064044918ca25f89fc
Showing 528 changed files with 1,440 additions and 1,440 deletions.
@@ -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?)
}
@@ -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;
}

@@ -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 )
@@ -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() )
{
@@ -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()
@@ -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
@@ -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" ) ) );
@@ -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;

@@ -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" ) ) );
@@ -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
@@ -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" ) ) );
@@ -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
@@ -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
@@ -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;
}

@@ -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 );
@@ -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." ) );
}

@@ -1654,7 +1654,7 @@ void DualEdgeTriangulation::ruppertRefinement()
{
//split segment
int pointno = splitHalfEdge( i, 0.5 );
Q_UNUSED( pointno );
Q_UNUSED( pointno )
stop = false;
}
}
@@ -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 )
@@ -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;
}
@@ -117,7 +117,7 @@ void addToTmpNodes(QgsMeshCalcNode* node)
void removeTmpNode(QgsMeshCalcNode* node)
{
bool res;
Q_UNUSED(res);
Q_UNUSED(res)

if (node)
{
@@ -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() )
@@ -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 )
}

0 comments on commit 4d6fbd3

Please sign in to comment.
You can’t perform that action at this time.