Skip to content

Commit

Permalink
Address review
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jun 5, 2024
1 parent 5e0df0b commit 2621d95
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/core/painting/qgsgeometrypaintdevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -502,10 +502,10 @@ void QgsGeometryPaintEngine::addSubpathGeometries( const QPainterPath &path, con
if ( queuedPolygons.empty() )
return;

mGeometry.reserve( mGeometry.numGeometries() + queuedPolygons.size() );
mGeometry.reserve( static_cast< int >( mGeometry.numGeometries() + queuedPolygons.size() ) );

QgsMultiPolygon tempMultiPolygon;
tempMultiPolygon.reserve( queuedPolygons.size() );
tempMultiPolygon.reserve( static_cast< int >( queuedPolygons.size() ) );
for ( auto &part : queuedPolygons )
{
tempMultiPolygon.addGeometry( part.release() );
Expand Down
2 changes: 1 addition & 1 deletion src/core/painting/qgsgeometrypaintdevice.h
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ class QgsGeometryPaintEngine: public QPaintEngine
bool mUsePathStroker = false;
QPen mPen;
QgsGeometryCollection mGeometry;
int mStrokedPathsSegments = 8;
static constexpr int mStrokedPathsSegments = 8;
};

#endif
Expand Down

0 comments on commit 2621d95

Please sign in to comment.