Skip to content

Commit 1f6cd31

Browse files
committedDec 5, 2017
Fixes after review
1 parent b773d61 commit 1f6cd31

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed
 

‎src/3d/qgs3dutils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ QString Qgs3DUtils::cullingModeToString( Qt3DRender::QCullFace::CullingMode mode
9090
case Qt3DRender::QCullFace::Front: return QStringLiteral( "front" );
9191
case Qt3DRender::QCullFace::Back: return QStringLiteral( "back" );
9292
case Qt3DRender::QCullFace::FrontAndBack: return QStringLiteral( "front-and-back" );
93-
default: return QString();
9493
}
94+
return QString();
9595
}
9696

9797
Qt3DRender::QCullFace::CullingMode Qgs3DUtils::cullingModeFromString( const QString &str )

‎src/3d/qgstessellator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ void QgsTessellator::addPolygon( const QgsPolygon &polygon, float extrusionHeigh
420420
polylinesToDelete << holePolyline;
421421
}
422422

423-
// run triangulation and write vertices to the ouput data array
423+
// run triangulation and write vertices to the output data array
424424
try
425425
{
426426
cdt->Triangulate();

‎src/3d/symbols/qgspolygon3dsymbol_p.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ Qt3DExtras::QPhongMaterial *QgsPolygon3DSymbolEntity::material( const QgsPolygon
113113

114114
// front/back side culling
115115
auto techniques = material->effect()->techniques();
116-
for ( auto tit = techniques.begin(); tit != techniques.end(); ++tit )
116+
for ( auto tit = techniques.constBegin(); tit != techniques.constEnd(); ++tit )
117117
{
118118
auto renderPasses = ( *tit )->renderPasses();
119119
for ( auto rpit = renderPasses.begin(); rpit != renderPasses.end(); ++rpit )

0 commit comments

Comments
 (0)
Please sign in to comment.