diff --git a/examples/boxes/main.cpp b/examples/boxes/main.cpp index b55226fb..7e6dc3f2 100644 --- a/examples/boxes/main.cpp +++ b/examples/boxes/main.cpp @@ -51,7 +51,7 @@ public: } }; -void addTestRectangle( QskLinearBox* parent ) +static void addTestRectangle( QskLinearBox* parent ) { auto box = new Box( parent ); box->setMargins( 50 ); diff --git a/examples/gbenchmark/Benchmark.cpp b/examples/gbenchmark/Benchmark.cpp index d1fa5f93..c7abc696 100644 --- a/examples/gbenchmark/Benchmark.cpp +++ b/examples/gbenchmark/Benchmark.cpp @@ -122,7 +122,7 @@ bool Benchmark::run( const QString& dirName ) for ( int i = 0; i < qvgFiles.size(); i++ ) { - int textureId = QskGraphicTextureFactory::createTexture( + const auto textureId = QskGraphicTextureFactory::createTexture( QskGraphicTextureFactory::OpenGL, targetRect, Qt::KeepAspectRatio, graphics[i], colorFilter ); @@ -146,7 +146,7 @@ bool Benchmark::run( const QString& dirName ) for ( int i = 0; i < qvgFiles.size(); i++ ) { - int textureId = QskGraphicTextureFactory::createTexture( + const auto textureId = QskGraphicTextureFactory::createTexture( QskGraphicTextureFactory::Raster, targetRect, Qt::KeepAspectRatio, graphics[i], colorFilter ); diff --git a/examples/sliders/SliderSkinlet.cpp b/examples/sliders/SliderSkinlet.cpp index 38d2fb06..74469af8 100644 --- a/examples/sliders/SliderSkinlet.cpp +++ b/examples/sliders/SliderSkinlet.cpp @@ -20,12 +20,12 @@ #if 1 // should be skin hints -const qreal qskMinorTick = 20; -const qreal qskMajorTick = 1.5 * qskMinorTick; -const qreal qskMargin = 20; -const qreal qskPeak = 10; +static const qreal qskMinorTick = 20; +static const qreal qskMajorTick = 1.5 * qskMinorTick; +static const qreal qskMargin = 20; +static const qreal qskPeak = 10; -QFont qskLabelFont; +static QFont qskLabelFont; #endif class TicksNode : public QSGGeometryNode diff --git a/examples/thumbnails/main.cpp b/examples/thumbnails/main.cpp index 8d28f342..cacd6278 100644 --- a/examples/thumbnails/main.cpp +++ b/examples/thumbnails/main.cpp @@ -48,7 +48,7 @@ static QColor randomColor() "DarkSlateGray" }; - const int index = qrand() % ( sizeof( colors ) / sizeof( colors[0] ) ); + const int index = qrand() % int( ( sizeof( colors ) / sizeof( colors[0] ) ) ); return QColor( colors[ index ] ); }